#D2C04F#D2C04F

#D2C04F is a light, vivid yellow. Relative luminance 0.520; OKLCH L 80.2% C 0.134 H 100.3°. Best body text is #000000 at 11.39:1 contrast (WCAG AA passes).

Color values

HEX#D2C04F
RGBrgb(210, 192, 79)
HSLhsl(52, 59%, 57%)
HSVhsv(52, 62%, 82%)
CMYKcmyk(0%, 8.6%, 62.4%, 17.6%)
CIE-LABlab(77.26, -7.05, 57.60)
CIE-LCHlch(77.26, 58.03, 96.98°)
OKLaboklab(80.16% -0.0238 0.1315)
OKLCHoklch(80.16% 0.134 100.3)
XYZxyz(46.8411, 51.9674, 14.9590)
Luminance0.5196 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2C04F #4F61D2
analogous
#D27F4F #D2C04F #A3D24F
triadic
#D2C04F #4FD2C0 #C04FD2
tetradic
#D2C04F #4FD27F #4F61D2 #D24FA3
square
#D2C04F #4FD27F #4F61D2 #D24FA3
split-complementary
#D2C04F #4FA3D2 #7F4FD2
monochromatic
#857722 #B5A32E #D2C04F #DED180 #EBE3B0

Accessibility & contrast

On white

1.84
#D2C04F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.39
#D2C04F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2C04F
11.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2C04F#FFFFFF#000000##000000
##D2C04F1.001.8411.3911.39
#FFFFFF1.841.0021.0021.00
#00000011.3921.001.001.00
##00000011.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#D1BB42
Deuteranopia (green-blind)
#D6C255
Tritanopia (blue-blind)
#E1B3A8
Achromatopsia (no color)
#BFBFBF

Design tokens & code

CSS
--color: #d2c04f;
/* rgb */ color: rgb(210, 192, 79);
/* oklch */ color: oklch(80.2% 0.134 100.3);
Tailwind
colors: {
  custom: {
    50: '#e3d285',
    500: '#d2c04f',
    950: '#000000',
  },
}
SCSS
$custom: #d2c04f;
$custom-light: #e3d285;
$custom-dark: #000000;
JSON
{
  "hex": "#d2c04f",
  "rgb": {
    "r": 210,
    "g": 192,
    "b": 79
  },
  "hsl": {
    "h": 51.756,
    "s": 59.276,
    "l": 56.667
  },
  "oklch": {
    "l": 0.80157,
    "c": 0.13366,
    "h": 100.3
  },
  "luminance": 0.51965
}

Semantic roles & 50–950 ramp

primary
#D2C04F
secondary
#3A458C
accent
#5BE245
background
#FEFEFB
surface
#FDFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #D2C04F

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

Preview Lab → · Contrast checker → · Palette generator →

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