#D1C04C#D1C04C

#D1C04C is a light, vivid yellow. Relative luminance 0.518; OKLCH L 80.0% C 0.136 H 101.0°. Best body text is #000000 at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#D1C04C
RGBrgb(209, 192, 76)
HSLhsl(52, 59%, 56%)
HSVhsv(52, 64%, 82%)
CMYKcmyk(0%, 8.1%, 63.6%, 18%)
CIE-LABlab(77.15, -7.66, 58.74)
CIE-LCHlch(77.15, 59.24, 97.43°)
OKLaboklab(80.04% -0.0259 0.1335)
OKLCHoklch(80.04% 0.136 101)
XYZxyz(46.4505, 51.7783, 14.3835)
Luminance0.5178 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D1C04C #4C5DD1
analogous
#D17D4C #D1C04C #9FD14C
triadic
#D1C04C #4CD1C0 #C04CD1
tetradic
#D1C04C #4CD17D #4C5DD1 #D14C9F
square
#D1C04C #4CD17D #4C5DD1 #D14C9F
split-complementary
#D1C04C #4C9FD1 #7D4CD1
monochromatic
#817521 #B2A12E #D1C04C #DED17D #EAE2AD

Accessibility & contrast

On white

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

On black

11.36
#D1C04C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D1C04C
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D1C04C#FFFFFF#000000##000000
##D1C04C1.001.8511.3611.36
#FFFFFF1.851.0021.0021.00
#00000011.3621.001.001.00
##00000011.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#D1BB3E
Deuteranopia (green-blind)
#D6C252
Tritanopia (blue-blind)
#E0B3A8
Achromatopsia (no color)
#BEBEBE

Design tokens & code

CSS
--color: #d1c04c;
/* rgb */ color: rgb(209, 192, 76);
/* oklch */ color: oklch(80.0% 0.136 101.0);
Tailwind
colors: {
  custom: {
    50: '#e2d283',
    500: '#d1c04c',
    950: '#000000',
  },
}
SCSS
$custom: #d1c04c;
$custom-light: #e2d283;
$custom-dark: #000000;
JSON
{
  "hex": "#d1c04c",
  "rgb": {
    "r": 209,
    "g": 192,
    "b": 76
  },
  "hsl": {
    "h": 52.331,
    "s": 59.111,
    "l": 55.882
  },
  "oklch": {
    "l": 0.80038,
    "c": 0.13602,
    "h": 101
  },
  "luminance": 0.51776
}

Semantic roles & 50–950 ramp

primary
#D1C04C
secondary
#394389
accent
#5AE246
background
#FEFEFB
surface
#FDFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #D1C04C

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

Preview Lab → · Contrast checker → · Palette generator →

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