#D2C04D#D2C04D

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

Color values

HEX#D2C04D
RGBrgb(210, 192, 77)
HSLhsl(52, 60%, 56%)
HSVhsv(52, 63%, 82%)
CMYKcmyk(0%, 8.6%, 63.3%, 17.6%)
CIE-LABlab(77.24, -7.17, 58.44)
CIE-LCHlch(77.24, 58.88, 97.00°)
OKLaboklab(80.14% -0.0244 0.133)
OKLCHoklch(80.14% 0.135 100.4)
XYZxyz(46.7694, 51.9387, 14.5814)
Luminance0.5194 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2C04D #4D5FD2
analogous
#D27E4D #D2C04D #A2D24D
triadic
#D2C04D #4DD2C0 #C04DD2
tetradic
#D2C04D #4DD27E #4D5FD2 #D24DA2
square
#D2C04D #4DD27E #4D5FD2 #D24DA2
split-complementary
#D2C04D #4DA2D2 #7E4DD2
monochromatic
#837621 #B4A22E #D2C04D #DED17E #EBE3AF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D2C04D#FFFFFF#000000##000000
##D2C04D1.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)
#D1BB3F
Deuteranopia (green-blind)
#D6C253
Tritanopia (blue-blind)
#E1B3A8
Achromatopsia (no color)
#BFBFBF

Design tokens & code

CSS
--color: #d2c04d;
/* rgb */ color: rgb(210, 192, 77);
/* oklch */ color: oklch(80.1% 0.135 100.4);
Tailwind
colors: {
  custom: {
    50: '#e3d284',
    500: '#d2c04d',
    950: '#000000',
  },
}
SCSS
$custom: #d2c04d;
$custom-light: #e3d284;
$custom-dark: #000000;
JSON
{
  "hex": "#d2c04d",
  "rgb": {
    "r": 210,
    "g": 192,
    "b": 77
  },
  "hsl": {
    "h": 51.88,
    "s": 59.641,
    "l": 56.275
  },
  "oklch": {
    "l": 0.80138,
    "c": 0.13524,
    "h": 100.4
  },
  "luminance": 0.51937
}

Semantic roles & 50–950 ramp

primary
#D2C04D
secondary
#39448A
accent
#5AE345
background
#FEFEFB
surface
#FDFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #D2C04D

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

Preview Lab → · Contrast checker → · Palette generator →

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