#D1C04E#D1C04E

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

Color values

HEX#D1C04E
RGBrgb(209, 192, 78)
HSLhsl(52, 59%, 56%)
HSVhsv(52, 63%, 82%)
CMYKcmyk(0%, 8.1%, 62.7%, 18%)
CIE-LABlab(77.17, -7.53, 57.90)
CIE-LCHlch(77.17, 58.39, 97.41°)
OKLaboklab(80.06% -0.0253 0.1321)
OKLCHoklch(80.06% 0.134 100.8)
XYZxyz(46.5211, 51.8066, 14.7554)
Luminance0.5181 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D1C04E #4E5FD1
analogous
#D17F4E #D1C04E #A1D14E
triadic
#D1C04E #4ED1C0 #C04ED1
tetradic
#D1C04E #4ED17F #4E5FD1 #D14EA1
square
#D1C04E #4ED17F #4E5FD1 #D14EA1
split-complementary
#D1C04E #4EA1D1 #7F4ED1
monochromatic
#837622 #B3A22F #D1C04E #DED17F #EAE3AF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #d1c04e;
/* rgb */ color: rgb(209, 192, 78);
/* oklch */ color: oklch(80.1% 0.134 100.8);
Tailwind
colors: {
  custom: {
    50: '#e2d284',
    500: '#d1c04e',
    950: '#000000',
  },
}
SCSS
$custom: #d1c04e;
$custom-light: #e2d284;
$custom-dark: #000000;
JSON
{
  "hex": "#d1c04e",
  "rgb": {
    "r": 209,
    "g": 192,
    "b": 78
  },
  "hsl": {
    "h": 52.214,
    "s": 58.744,
    "l": 56.275
  },
  "oklch": {
    "l": 0.80057,
    "c": 0.13445,
    "h": 100.8
  },
  "luminance": 0.51805
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D1C04E

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

Preview Lab → · Contrast checker → · Palette generator →

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