#D9C04B#D9C04B

#D9C04B is a light, vivid yellow. Relative luminance 0.530; OKLCH L 80.8% C 0.137 H 97.1°. Best body text is #000000 at 11.59:1 contrast (WCAG AA passes).

Color values

HEX#D9C04B
RGBrgb(217, 192, 75)
HSLhsl(49, 65%, 57%)
HSVhsv(49, 65%, 85%)
CMYKcmyk(0%, 11.5%, 65.4%, 14.9%)
CIE-LABlab(77.85, -4.34, 60.13)
CIE-LCHlch(77.85, 60.28, 94.12°)
OKLaboklab(80.76% -0.017 0.1361)
OKLCHoklch(80.76% 0.137 97.1)
XYZxyz(48.7371, 52.9614, 14.3107)
Luminance0.5296 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D9C04B #4B64D9
analogous
#D9794B #D9C04B #ABD94B
triadic
#D9C04B #4BD9C0 #C04BD9
tetradic
#D9C04B #4BD979 #4B64D9 #D94BAB
square
#D9C04B #4BD979 #4B64D9 #D94BAB
split-complementary
#D9C04B #4BABD9 #794BD9
monochromatic
#8C791E #BFA428 #D9C04B #E4D27E #EEE3B0

Accessibility & contrast

On white

1.81
#D9C04B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.59
#D9C04B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D9C04B
11.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D9C04B#FFFFFF#000000##000000
##D9C04B1.001.8111.5911.59
#FFFFFF1.811.0021.0021.00
#00000011.5921.001.001.00
##00000011.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#D2BC3D
Deuteranopia (green-blind)
#D9C451
Tritanopia (blue-blind)
#E9B2A8
Achromatopsia (no color)
#C0C0C0

Design tokens & code

CSS
--color: #d9c04b;
/* rgb */ color: rgb(217, 192, 75);
/* oklch */ color: oklch(80.8% 0.137 97.1);
Tailwind
colors: {
  custom: {
    50: '#e8d283',
    500: '#d9c04b',
    950: '#000000',
  },
}
SCSS
$custom: #d9c04b;
$custom-light: #e8d283;
$custom-dark: #000000;
JSON
{
  "hex": "#d9c04b",
  "rgb": {
    "r": 217,
    "g": 192,
    "b": 75
  },
  "hsl": {
    "h": 49.437,
    "s": 65.138,
    "l": 57.255
  },
  "oklch": {
    "l": 0.80763,
    "c": 0.13714,
    "h": 97.1
  },
  "luminance": 0.52959
}

Semantic roles & 50–950 ramp

primary
#D9C04B
secondary
#364792
accent
#5DE840
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#17140B
muted
#85837E

Preview Lab

Preview with #D9C04B

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

Preview Lab → · Contrast checker → · Palette generator →

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