#D2D04E#D2D04E

#D2D04E is a very light, vivid yellow. Relative luminance 0.594; OKLCH L 83.5% C 0.149 H 108.4°. Best body text is #000000 at 12.87:1 contrast (WCAG AA passes).

Color values

HEX#D2D04E
RGBrgb(210, 208, 78)
HSLhsl(59, 59%, 56%)
HSVhsv(59, 63%, 82%)
CMYKcmyk(0%, 1%, 62.9%, 17.6%)
CIE-LABlab(81.49, -15.23, 62.54)
CIE-LCHlch(81.49, 64.37, 103.68°)
OKLaboklab(83.52% -0.0472 0.1418)
OKLCHoklch(83.52% 0.149 108.4)
XYZxyz(50.5110, 59.3649, 16.0041)
Luminance0.5936 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2D04E #4E50D2
analogous
#D28E4E #D2D04E #92D24E
triadic
#D2D04E #4ED2D0 #D04ED2
tetradic
#D2D04E #4ED28E #4E50D2 #D24E92
square
#D2D04E #4ED28E #4E50D2 #D24E92
split-complementary
#D2D04E #4E92D2 #8E4ED2
monochromatic
#848322 #B5B32E #D2D04E #DEDD7F #EBEAB0

Accessibility & contrast

On white

1.63
#D2D04E on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.87
#D2D04E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2D04E
12.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2D04E#FFFFFF#000000##000000
##D2D04E1.001.6312.8712.87
#FFFFFF1.631.0021.0021.00
#00000012.8721.001.001.00
##00000012.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#E0C83D
Deuteranopia (green-blind)
#E2CD56
Tritanopia (blue-blind)
#E0C3B5
Achromatopsia (no color)
#CACACA

Design tokens & code

CSS
--color: #d2d04e;
/* rgb */ color: rgb(210, 208, 78);
/* oklch */ color: oklch(83.5% 0.149 108.4);
Tailwind
colors: {
  custom: {
    50: '#e3de86',
    500: '#d2d04e',
    950: '#000000',
  },
}
SCSS
$custom: #d2d04e;
$custom-light: #e3de86;
$custom-dark: #000000;
JSON
{
  "hex": "#d2d04e",
  "rgb": {
    "r": 210,
    "g": 208,
    "b": 78
  },
  "hsl": {
    "h": 59.091,
    "s": 59.459,
    "l": 56.471
  },
  "oklch": {
    "l": 0.8352,
    "c": 0.14948,
    "h": 108.4
  },
  "luminance": 0.59363
}

Semantic roles & 50–950 ramp

primary
#D2D04E
secondary
#393B8B
accent
#48E345
background
#FEFEFB
surface
#FDFCF2
border
#D5D5CC
text
#16150B
muted
#84847E

Preview Lab

Preview with #D2D04E

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

Preview Lab → · Contrast checker → · Palette generator →

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