#D2C04A#D2C04A

#D2C04A is a light, vivid yellow. Relative luminance 0.519; OKLCH L 80.1% C 0.138 H 100.6°. Best body text is #000000 at 11.38:1 contrast (WCAG AA passes).

Color values

HEX#D2C04A
RGBrgb(210, 192, 74)
HSLhsl(52, 60%, 56%)
HSVhsv(52, 65%, 82%)
CMYKcmyk(0%, 8.6%, 64.8%, 17.6%)
CIE-LABlab(77.22, -7.36, 59.69)
CIE-LCHlch(77.22, 60.14, 97.03°)
OKLaboklab(80.11% -0.0253 0.1352)
OKLCHoklch(80.11% 0.138 100.6)
XYZxyz(46.6660, 51.8973, 14.0363)
Luminance0.5190 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2C04A #4A5CD2
analogous
#D27C4A #D2C04A #A0D24A
triadic
#D2C04A #4AD2C0 #C04AD2
tetradic
#D2C04A #4AD27C #4A5CD2 #D24AA0
square
#D2C04A #4AD27C #4A5CD2 #D24AA0
split-complementary
#D2C04A #4AA0D2 #7C4AD2
monochromatic
#817520 #B2A12C #D2C04A #DED17B #EAE2AC

Accessibility & contrast

On white

1.85
#D2C04A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.38
#D2C04A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2C04A
11.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2C04A#FFFFFF#000000##000000
##D2C04A1.001.8511.3811.38
#FFFFFF1.851.0021.0021.00
#00000011.3821.001.001.00
##00000011.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#D1BB3B
Deuteranopia (green-blind)
#D6C251
Tritanopia (blue-blind)
#E1B3A7
Achromatopsia (no color)
#BFBFBF

Design tokens & code

CSS
--color: #d2c04a;
/* rgb */ color: rgb(210, 192, 74);
/* oklch */ color: oklch(80.1% 0.138 100.6);
Tailwind
colors: {
  custom: {
    50: '#e3d282',
    500: '#d2c04a',
    950: '#000000',
  },
}
SCSS
$custom: #d2c04a;
$custom-light: #e3d282;
$custom-dark: #000000;
JSON
{
  "hex": "#d2c04a",
  "rgb": {
    "r": 210,
    "g": 192,
    "b": 74
  },
  "hsl": {
    "h": 52.059,
    "s": 60.177,
    "l": 55.686
  },
  "oklch": {
    "l": 0.80111,
    "c": 0.13756,
    "h": 100.6
  },
  "luminance": 0.51895
}

Semantic roles & 50–950 ramp

primary
#D2C04A
secondary
#384289
accent
#59E344
background
#FEFEFB
surface
#FDFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #D2C04A

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

Preview Lab → · Contrast checker → · Palette generator →

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