#D1C04D#D1C04D

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

Color values

HEX#D1C04D
RGBrgb(209, 192, 77)
HSLhsl(52, 59%, 56%)
HSVhsv(52, 63%, 82%)
CMYKcmyk(0%, 8.1%, 63.2%, 18%)
CIE-LABlab(77.16, -7.60, 58.32)
CIE-LCHlch(77.16, 58.81, 97.42°)
OKLaboklab(80.05% -0.0256 0.1328)
OKLCHoklch(80.05% 0.135 100.9)
XYZxyz(46.4856, 51.7923, 14.5681)
Luminance0.5179 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D1C04D #4D5ED1
analogous
#D17E4D #D1C04D #A0D14D
triadic
#D1C04D #4DD1C0 #C04DD1
tetradic
#D1C04D #4DD17E #4D5ED1 #D14DA0
square
#D1C04D #4DD17E #4D5ED1 #D14DA0
split-complementary
#D1C04D #4DA0D1 #7E4DD1
monochromatic
#827622 #B3A22E #D1C04D #DED17E #EAE2AE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D1C04D#FFFFFF#000000##000000
##D1C04D1.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)
#D1BB3F
Deuteranopia (green-blind)
#D6C253
Tritanopia (blue-blind)
#E0B3A8
Achromatopsia (no color)
#BEBEBE

Design tokens & code

CSS
--color: #d1c04d;
/* rgb */ color: rgb(209, 192, 77);
/* oklch */ color: oklch(80.0% 0.135 100.9);
Tailwind
colors: {
  custom: {
    50: '#e2d284',
    500: '#d1c04d',
    950: '#000000',
  },
}
SCSS
$custom: #d1c04d;
$custom-light: #e2d284;
$custom-dark: #000000;
JSON
{
  "hex": "#d1c04d",
  "rgb": {
    "r": 209,
    "g": 192,
    "b": 77
  },
  "hsl": {
    "h": 52.273,
    "s": 58.929,
    "l": 56.078
  },
  "oklch": {
    "l": 0.80048,
    "c": 0.13524,
    "h": 100.9
  },
  "luminance": 0.5179
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D1C04D

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

Preview Lab → · Contrast checker → · Palette generator →

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