#D2D04F#D2D04F

#D2D04F 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.88:1 contrast (WCAG AA passes).

Color values

HEX#D2D04F
RGBrgb(210, 208, 79)
HSLhsl(59, 59%, 57%)
HSVhsv(59, 62%, 82%)
CMYKcmyk(0%, 1%, 62.4%, 17.6%)
CIE-LABlab(81.50, -15.16, 62.14)
CIE-LCHlch(81.50, 63.96, 103.71°)
OKLaboklab(83.53% -0.0469 0.1411)
OKLCHoklch(83.53% 0.149 108.4)
XYZxyz(50.5471, 59.3794, 16.1943)
Luminance0.5938 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2D04F #4F51D2
analogous
#D28F4F #D2D04F #93D24F
triadic
#D2D04F #4FD2D0 #D04FD2
tetradic
#D2D04F #4FD28F #4F51D2 #D24F93
square
#D2D04F #4FD28F #4F51D2 #D24F93
split-complementary
#D2D04F #4F93D2 #8F4FD2
monochromatic
#858322 #B5B32E #D2D04F #DEDD80 #EBEAB0

Accessibility & contrast

On white

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

On black

12.88
#D2D04F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2D04F
12.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2D04F#FFFFFF#000000##000000
##D2D04F1.001.6312.8812.88
#FFFFFF1.631.0021.0021.00
#00000012.8821.001.001.00
##00000012.8821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d2d04f;
/* rgb */ color: rgb(210, 208, 79);
/* oklch */ color: oklch(83.5% 0.149 108.4);
Tailwind
colors: {
  custom: {
    50: '#e3de86',
    500: '#d2d04f',
    950: '#000000',
  },
}
SCSS
$custom: #d2d04f;
$custom-light: #e3de86;
$custom-dark: #000000;
JSON
{
  "hex": "#d2d04f",
  "rgb": {
    "r": 210,
    "g": 208,
    "b": 79
  },
  "hsl": {
    "h": 59.084,
    "s": 59.276,
    "l": 56.667
  },
  "oklch": {
    "l": 0.83529,
    "c": 0.14873,
    "h": 108.4
  },
  "luminance": 0.59378
}

Semantic roles & 50–950 ramp

primary
#D2D04F
secondary
#3A3B8C
accent
#48E245
background
#FEFEFC
surface
#FDFCF3
border
#D5D5CD
text
#16150C
muted
#84847F

Preview Lab

Preview with #D2D04F

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

Preview Lab → · Contrast checker → · Palette generator →

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