#D1C04A#D1C04A

#D1C04A is a light, vivid yellow. Relative luminance 0.517; OKLCH L 80.0% C 0.138 H 101.1°. Best body text is #000000 at 11.35:1 contrast (WCAG AA passes).

Color values

HEX#D1C04A
RGBrgb(209, 192, 74)
HSLhsl(52, 59%, 55%)
HSVhsv(52, 65%, 82%)
CMYKcmyk(0%, 8.1%, 64.6%, 18%)
CIE-LABlab(77.13, -7.78, 59.57)
CIE-LCHlch(77.13, 60.08, 97.44°)
OKLaboklab(80.02% -0.0264 0.135)
OKLCHoklch(80.02% 0.138 101.1)
XYZxyz(46.3821, 51.7510, 14.0230)
Luminance0.5175 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D1C04A #4A5BD1
analogous
#D17C4A #D1C04A #9FD14A
triadic
#D1C04A #4AD1C0 #C04AD1
tetradic
#D1C04A #4AD17C #4A5BD1 #D14A9F
square
#D1C04A #4AD17C #4A5BD1 #D14A9F
split-complementary
#D1C04A #4A9FD1 #7C4AD1
monochromatic
#807421 #B1A02D #D1C04A #DDD17B #EAE2AC

Accessibility & contrast

On white

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

On black

11.35
#D1C04A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D1C04A
11.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D1C04A#FFFFFF#000000##000000
##D1C04A1.001.8511.3511.35
#FFFFFF1.851.0021.0021.00
#00000011.3521.001.001.00
##00000011.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#D1BB3B
Deuteranopia (green-blind)
#D6C151
Tritanopia (blue-blind)
#E0B3A7
Achromatopsia (no color)
#BEBEBE

Design tokens & code

CSS
--color: #d1c04a;
/* rgb */ color: rgb(209, 192, 74);
/* oklch */ color: oklch(80.0% 0.138 101.1);
Tailwind
colors: {
  custom: {
    50: '#e2d282',
    500: '#d1c04a',
    950: '#000000',
  },
}
SCSS
$custom: #d1c04a;
$custom-light: #e2d282;
$custom-dark: #000000;
JSON
{
  "hex": "#d1c04a",
  "rgb": {
    "r": 209,
    "g": 192,
    "b": 74
  },
  "hsl": {
    "h": 52.444,
    "s": 59.471,
    "l": 55.49
  },
  "oklch": {
    "l": 0.8002,
    "c": 0.13755,
    "h": 101.1
  },
  "luminance": 0.51749
}

Semantic roles & 50–950 ramp

primary
#D1C04A
secondary
#384287
accent
#59E345
background
#FEFEFB
surface
#FDFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #D1C04A

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

Preview Lab → · Contrast checker → · Palette generator →

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