#D9C74B#D9C74B

#D9C74B is a very light, vivid yellow. Relative luminance 0.561; OKLCH L 82.2% C 0.143 H 101.0°. Best body text is #000000 at 12.22:1 contrast (WCAG AA passes).

Color values

HEX#D9C74B
RGBrgb(217, 199, 75)
HSLhsl(52, 65%, 57%)
HSVhsv(52, 65%, 85%)
CMYKcmyk(0%, 8.3%, 65.4%, 14.9%)
CIE-LABlab(79.68, -7.93, 62.04)
CIE-LCHlch(79.68, 62.55, 97.29°)
OKLaboklab(82.21% -0.0272 0.1402)
OKLCHoklch(82.21% 0.143 101)
XYZxyz(50.3108, 56.1087, 14.8352)
Luminance0.5611 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D9C74B #4B5DD9
analogous
#D9804B #D9C74B #A4D94B
triadic
#D9C74B #4BD9C7 #C74BD9
tetradic
#D9C74B #4BD980 #4B5DD9 #D94BA4
square
#D9C74B #4BD980 #4B5DD9 #D94BA4
split-complementary
#D9C74B #4BA4D9 #804BD9
monochromatic
#8C7E1E #BFAC28 #D9C74B #E4D77E #EEE6B0

Accessibility & contrast

On white

1.72
#D9C74B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.22
#D9C74B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D9C74B
12.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D9C74B#FFFFFF#000000##000000
##D9C74B1.001.7212.2212.22
#FFFFFF1.721.0021.0021.00
#00000012.2221.001.001.00
##00000012.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#D9C13B
Deuteranopia (green-blind)
#DEC952
Tritanopia (blue-blind)
#E9B9AD
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #d9c74b;
/* rgb */ color: rgb(217, 199, 75);
/* oklch */ color: oklch(82.2% 0.143 101.0);
Tailwind
colors: {
  custom: {
    50: '#e8d783',
    500: '#d9c74b',
    950: '#000000',
  },
}
SCSS
$custom: #d9c74b;
$custom-light: #e8d783;
$custom-dark: #000000;
JSON
{
  "hex": "#d9c74b",
  "rgb": {
    "r": 217,
    "g": 199,
    "b": 75
  },
  "hsl": {
    "h": 52.394,
    "s": 65.138,
    "l": 57.255
  },
  "oklch": {
    "l": 0.82208,
    "c": 0.14277,
    "h": 101
  },
  "luminance": 0.56107
}

Semantic roles & 50–950 ramp

primary
#D9C74B
secondary
#364292
accent
#55E840
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140B
muted
#85837E

Preview Lab

Preview with #D9C74B

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

Preview Lab → · Contrast checker → · Palette generator →

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