#D4D142#D4D142

#D4D142 is a very light, vivid yellow. Relative luminance 0.600; OKLCH L 83.8% C 0.159 H 108.2°. Best body text is #000000 at 13.00:1 contrast (WCAG AA passes).

Color values

HEX#D4D142
RGBrgb(212, 209, 66)
HSLhsl(59, 63%, 55%)
HSVhsv(59, 69%, 83%)
CMYKcmyk(0%, 1.4%, 68.9%, 16.9%)
CIE-LABlab(81.83, -15.57, 67.62)
CIE-LCHlch(81.83, 69.38, 102.96°)
OKLaboklab(83.81% -0.0495 0.1506)
OKLCHoklch(83.81% 0.159 108.2)
XYZxyz(50.9371, 59.9929, 14.0498)
Luminance0.5999 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4D142 #4245D4
analogous
#D48842 #D4D142 #8ED442
triadic
#D4D142 #42D4D1 #D142D4
tetradic
#D4D142 #42D488 #4245D4 #D4428E
square
#D4D142 #42D488 #4245D4 #D4428E
split-complementary
#D4D142 #428ED4 #8842D4
monochromatic
#7F7D1D #B1AE28 #D4D142 #DFDD74 #EBE9A6

Accessibility & contrast

On white

1.62
#D4D142 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.00
#D4D142 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D4D142
13.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4D142#FFFFFF#000000##000000
##D4D1421.001.6213.0013.00
#FFFFFF1.621.0021.0021.00
#00000013.0021.001.001.00
##00000013.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#E2C92B
Deuteranopia (green-blind)
#E4CE4C
Tritanopia (blue-blind)
#E3C4B5
Achromatopsia (no color)
#CBCBCB

Design tokens & code

CSS
--color: #d4d142;
/* rgb */ color: rgb(212, 209, 66);
/* oklch */ color: oklch(83.8% 0.159 108.2);
Tailwind
colors: {
  custom: {
    50: '#e5de7f',
    500: '#d4d142',
    950: '#000000',
  },
}
SCSS
$custom: #d4d142;
$custom-light: #e5de7f;
$custom-dark: #000000;
JSON
{
  "hex": "#d4d142",
  "rgb": {
    "r": 212,
    "g": 209,
    "b": 66
  },
  "hsl": {
    "h": 58.767,
    "s": 62.931,
    "l": 54.51
  },
  "oklch": {
    "l": 0.83805,
    "c": 0.15851,
    "h": 108.2
  },
  "luminance": 0.59991
}

Semantic roles & 50–950 ramp

primary
#D4D142
secondary
#343686
accent
#45E642
background
#FFFEFB
surface
#FEFCF2
border
#D6D5CC
text
#16150B
muted
#85847E

Preview Lab

Preview with #D4D142

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

Preview Lab → · Contrast checker → · Palette generator →

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