RAL Classic color

RAL 7042 Traffic grey A #8F9695

RAL 7042 Traffic grey A is shown here as #8F9695, a widely published sRGB approximation of the printed swatch. It is a gray in the neutral family. In OKLCH it sits at lightness 0.667 with chroma 0.008, too low for hue to matter. The nearest CSS named color is darkgray (#A9A9A9), ΔE2000 7.4 away.

Relative luminance
0.2982
OKLCH L · C · h
0.667 · 0.008 · 186.8
Best text
Black 6.96:1
Hue family
Neutral

#8F9695 color codes

HEX
#8F9695
RGB
rgb(143, 150, 149)
HSL
hsl(171, 3%, 57%)
OKLCH
oklch(0.667 0.008 186.8)
OKLab
oklab(0.667 -0.008 -0.001)
CIELAB (D65)
L* 61.50, a* -2.72, b* -0.35
XYZ (D65)
X 27.66, Y 29.82, Z 32.73
CMYK (naive)
cmyk(5%, 0%, 1%, 41%)

CIELAB and XYZ use the D65 white point; CSS lab() uses D50, so paste the OKLCH or HEX value into stylesheets. CMYK here is a plain formula with no press profile.

RAL and RAL Classic are trademarks of RAL gGmbH, which this site is not affiliated with. The sRGB value is an approximation of the printed swatch; check a physical RAL color card before you specify a paint.

Legibility

Contrast: is #8F9695 accessible?

Black text on it reaches 6.96:1, passing AA. White text manages only 3.01:1, enough for large text only.

WCAG 2 gives the same ratio whichever color is the text; APCA does not, so its Lc changes sign and size with polarity.

Open the Contrast System
  • Black text on it

    6.96:1

    • AA passes
    • AA large passes
    • AAA fails
    • APCA Lc +47
  • White text on it

    3.01:1

    • AA fails
    • AA large passes
    • AAA fails
    • APCA Lc −62
  • As text on black

    6.96:1

    • AA passes
    • AA large passes
    • AAA fails
    • APCA Lc −44
  • As text on white

    3.01:1

    • AA fails
    • AA large passes
    • AAA fails
    • APCA Lc +56

Nearest versions that pass 4.5:1

  • For text on white

    #717877 4.51:1

    Darkening its OKLCH lightness from 0.67 to 0.57 reaches 4.51:1 on white, keeping the hue.

  • For text on black

    #8F9695 6.96:1

    It already reaches 6.96:1 on black, so no change is needed.

Checking another pair? Use the Contrast Checker.

Studio

Adjust #8F9695 live

Move lightness, chroma and hue in OKLCH, or drag on the map. The map is every lightness and chroma at the current hue: sRGB inside the solid area, Display P3 out to the dashed line.

The studio needs JavaScript.

Scale

Shades and tints of #8F9695

Eleven OKLCH lightness steps at this hue, each with its contrast against white and black. #8F9695 sits at step 400.

  1. 50#F1F7F6
    White
    1.08
    Black
    19.37
  2. 100#E6EDEC
    White
    1.18
    Black
    17.68
  3. 200#D2D9D8
    White
    1.43
    Black
    14.65
  4. 300#B8BFBE
    White
    1.86
    Black
    11.23
  5. 400This color#8F9695
    White
    3.01
    Black
    6.96
  6. 500#818887
    White
    3.61
    Black
    5.80
  7. 600#6A706F
    White
    5.04
    Black
    4.16
  8. 700#535A59
    White
    7.05
    Black
    2.97
  9. 800#3B4140
    White
    10.41
    Black
    2.01
  10. 900#252A29
    White
    14.56
    Black
    1.44
  11. 950#131716
    White
    18.07
    Black
    1.16

Under each step, white and black text on it; a bold figure passes 4.5:1.

Gamut

How vivid #8F9695 can get

A gray has no hue, so no gamut holds a more vivid version of #8F9695: more chroma would make it another color.

0.00.20.40.60.80.20.40.60.8 460480500520540560580600620
  • sRGB
  • Display P3
  • Rec. 2020
  • Dominant wavelength
OKLCH chroma
0.008
sRGB edge
No hue
Display P3 edge
No hue
Rec. 2020 edge
No hue
Dominant wavelength
495 nm
Excitation purity
2%
Chromaticity
x 0.3066, y 0.3306

Mixing

Mixing #8F9695

Each row is the same mix worked out in a different space, with the halfway color at its end. sRGB, which older CSS gradients use, can sag gray or dark in the middle; OKLab keeps the lightness steps even; OKLCH holds chroma and hue as it goes.

White #FFFFFF

  • sRGB50%#C7CBCA
  • OKLab50%#C6C9C9
  • OKLCH50%#C6C9C9

Black #000000

  • sRGB50%#484B4B
  • OKLab50%#343737
  • OKLCH50%#343737
In CSS
/* A gradient and a mix, worked out in OKLCH */
background: linear-gradient(in oklch, #8f9695, white);
color: color-mix(in oklch, #8f9695 50%, white);

In use

#8F9695 in an interface

A button, a link, a heading, a focused field, an icon and a chart line in this color, on a light page and a dark one. Each check is a WCAG 2 contrast minimum: 1.4.3 for text, 1.4.11 for the rest.

Light page

  • Button labelText, 4.5:16.96:1 Passes
  • Link and body-size textText, 4.5:13.01:1 Fails
  • Large headingLarge text, 3:13.01:1 Passes
  • Icons, borders and focus ringsNon-text, 3:13.01:1 Passes

For text on this page, the nearest shade that passes is #717877 4.51:1

Dark page

  • Button labelText, 4.5:16.96:1 Passes
  • Link and body-size textText, 4.5:16.21:1 Passes
  • Large headingLarge text, 3:16.21:1 Passes
  • Icons, borders and focus ringsNon-text, 3:16.21:1 Passes

Color vision

How #8F9695 looks with color blindness

As a neutral it barely changes under any simulation, ΔE2000 4.0 at most.

Simulated with Machado et al. (2009) at full severity, in linear light.

Simulate a whole page What each type sees
  • Protanopia

    No working red (long-wavelength) cones

    #959595 ΔE2000 3.8

    Close match

    Reads as gray

  • Deuteranopia

    No working green (medium-wavelength) cones

    #949495 ΔE2000 4.0

    Close match

    Reads as gray

  • Tritanopia

    No working blue (short-wavelength) cones

    #8D9696 ΔE2000 1.0

    Imperceptible

    Reads as gray

  • Achromatopsia

    No cone color vision; lightness only

    #949494 ΔE2000 3.8

    Close match

    Reads as gray

Pairing check

A near-neutral has no complementary hue to pair with, so tell it apart from neighboring grays by lightness contrast alone.

Harmony

Color harmonies for #8F9695

A neutral has no hue to rotate, so every harmony collapses back to the same gray. Pair it with an accent color instead.

Or pair it by lightness: steps of its own scale as text on it, and what each can carry.

Build a lightness scale in Harmony Studio
  • Step 950 #131716 · 5.99:1

    Body text, AA

  • Step 700 #535A59 · 2.34:1

    Decoration only, under 3:1

  • Step 300 #B8BFBE · 1.61:1

    Decoration only, under 3:1

Code

Design tokens

Ready-to-paste tokens in six formats. Rename them to fit your system.

CSS custom property

:root {
  --color-ral-7042: #8f9695;
}

Tailwind config

// tailwind.config.js
module.exports = {
  theme: {
    extend: {
      colors: {
        'ral-7042': '#8f9695',
      },
    },
  },
};

Tailwind v4 theme

/* app.css — Tailwind CSS v4 */
@import "tailwindcss";

@theme {
  --color-ral-7042: oklch(0.667 0.008 186.8);
}

Design token (W3C DTCG)

{
  "color": {
    "ral-7042": {
      "$type": "color",
      "$value": {
        "colorSpace": "srgb",
        "components": [0.5608, 0.5882, 0.5843],
        "hex": "#8f9695"
      },
      "$description": "RAL 7042 Traffic grey A (approximate sRGB)"
    }
  }
}

SwiftUI color

import SwiftUI

enum Palette {
    static let ral7042 = Color(.sRGB, red: 0.561, green: 0.588, blue: 0.584, opacity: 1)
}

Jetpack Compose color

import androidx.compose.ui.graphics.Color

object Palette {
    val Ral7042 = Color(0xFF8F9695)
}

Matches

The nearest match in each system

The closest CSS name, Tailwind shade, RAL Classic paint and Crayola crayon by ΔE2000; under 2 is hard to tell apart side by side. RAL and Crayola values approximate physical colors.

Tools

Open #8F9695 in the tools

Each opens over this page. More colors live in the Color Library, and every color page is listed on the hub.