#D2C04E#D2C04E

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

Color values

HEX#D2C04E
RGBrgb(210, 192, 78)
HSLhsl(52, 59%, 56%)
HSVhsv(52, 63%, 82%)
CMYKcmyk(0%, 8.6%, 62.9%, 17.6%)
CIE-LABlab(77.25, -7.11, 58.02)
CIE-LCHlch(77.25, 58.45, 96.99°)
OKLaboklab(80.15% -0.0241 0.1323)
OKLCHoklch(80.15% 0.134 100.3)
XYZxyz(46.8050, 51.9530, 14.7687)
Luminance0.5195 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2C04E #4E60D2
analogous
#D27E4E #D2C04E #A2D24E
triadic
#D2C04E #4ED2C0 #C04ED2
tetradic
#D2C04E #4ED27E #4E60D2 #D24EA2
square
#D2C04E #4ED27E #4E60D2 #D24EA2
split-complementary
#D2C04E #4EA2D2 #7E4ED2
monochromatic
#847722 #B5A22E #D2C04E #DED17F #EBE3B0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D2C04E#FFFFFF#000000##000000
##D2C04E1.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)
#D1BB41
Deuteranopia (green-blind)
#D6C254
Tritanopia (blue-blind)
#E1B3A8
Achromatopsia (no color)
#BFBFBF

Design tokens & code

CSS
--color: #d2c04e;
/* rgb */ color: rgb(210, 192, 78);
/* oklch */ color: oklch(80.1% 0.134 100.3);
Tailwind
colors: {
  custom: {
    50: '#e3d284',
    500: '#d2c04e',
    950: '#000000',
  },
}
SCSS
$custom: #d2c04e;
$custom-light: #e3d284;
$custom-dark: #000000;
JSON
{
  "hex": "#d2c04e",
  "rgb": {
    "r": 210,
    "g": 192,
    "b": 78
  },
  "hsl": {
    "h": 51.818,
    "s": 59.459,
    "l": 56.471
  },
  "oklch": {
    "l": 0.80148,
    "c": 0.13445,
    "h": 100.3
  },
  "luminance": 0.51951
}

Semantic roles & 50–950 ramp

primary
#D2C04E
secondary
#39448B
accent
#5BE345
background
#FEFEFB
surface
#FDFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #D2C04E

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

Preview Lab → · Contrast checker → · Palette generator →

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