#D9D142#D9D142

#D9D142 is a very light, vivid yellow. Relative luminance 0.607; OKLCH L 84.2% C 0.158 H 106.1°. Best body text is #000000 at 13.15:1 contrast (WCAG AA passes).

Color values

HEX#D9D142
RGBrgb(217, 209, 66)
HSLhsl(57, 67%, 55%)
HSVhsv(57, 70%, 85%)
CMYKcmyk(0%, 3.7%, 69.6%, 14.9%)
CIE-LABlab(82.24, -13.47, 68.16)
CIE-LCHlch(82.24, 69.47, 101.18°)
OKLaboklab(84.23% -0.0439 0.1516)
OKLCHoklch(84.23% 0.158 106.1)
XYZxyz(52.4012, 60.7479, 14.1185)
Luminance0.6075 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D9D142 #424AD9
analogous
#D98542 #D9D142 #96D942
triadic
#D9D142 #42D9D1 #D142D9
tetradic
#D9D142 #42D985 #424AD9 #D94296
square
#D9D142 #42D985 #424AD9 #D94296
split-complementary
#D9D142 #4296D9 #8542D9
monochromatic
#86801B #B9B125 #D9D142 #E3DD75 #EDEAA8

Accessibility & contrast

On white

1.60
#D9D142 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.15
#D9D142 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D9D142
13.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D9D142#FFFFFF#000000##000000
##D9D1421.001.6013.1513.15
#FFFFFF1.601.0021.0021.00
#00000013.1521.001.001.00
##00000013.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#E3C92B
Deuteranopia (green-blind)
#E6CF4C
Tritanopia (blue-blind)
#E9C3B5
Achromatopsia (no color)
#CDCDCD

Design tokens & code

CSS
--color: #d9d142;
/* rgb */ color: rgb(217, 209, 66);
/* oklch */ color: oklch(84.2% 0.158 106.1);
Tailwind
colors: {
  custom: {
    50: '#e8de7f',
    500: '#d9d142',
    950: '#000000',
  },
}
SCSS
$custom: #d9d142;
$custom-light: #e8de7f;
$custom-dark: #000000;
JSON
{
  "hex": "#d9d142",
  "rgb": {
    "r": 217,
    "g": 209,
    "b": 66
  },
  "hsl": {
    "h": 56.821,
    "s": 66.52,
    "l": 55.49
  },
  "oklch": {
    "l": 0.8423,
    "c": 0.15779,
    "h": 106.1
  },
  "luminance": 0.60746
}

Semantic roles & 50–950 ramp

primary
#D9D142
secondary
#33388C
accent
#47E93E
background
#FFFEFB
surface
#FEFCF2
border
#D6D5CC
text
#17150B
muted
#85847E

Preview Lab

Preview with #D9D142

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#D9D142 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva