#D9B74F#D9B74F

#D9B74F is a light, vivid yellow. Relative luminance 0.492; OKLCH L 79.0% C 0.128 H 91.0°. Best body text is #000000 at 10.84:1 contrast (WCAG AA passes).

Color values

HEX#D9B74F
RGBrgb(217, 183, 79)
HSLhsl(45, 64%, 58%)
HSVhsv(45, 64%, 85%)
CMYKcmyk(0%, 15.7%, 63.6%, 14.9%)
CIE-LABlab(75.57, 0.60, 55.94)
CIE-LCHlch(75.57, 55.94, 89.39°)
OKLaboklab(78.97% -0.0023 0.1278)
OKLCHoklch(78.97% 0.128 91)
XYZxyz(46.9623, 49.1858, 14.4158)
Luminance0.4918 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D9B74F #4F71D9
analogous
#D9724F #D9B74F #B6D94F
triadic
#D9B74F #4FD9B7 #B74FD9
tetradic
#D9B74F #4FD972 #4F71D9 #D94FB6
square
#D9B74F #4FD972 #4F71D9 #D94FB6
split-complementary
#D9B74F #4FB6D9 #724FD9
monochromatic
#8F731F #C19C2A #D9B74F #E4CC81 #EFE0B4

Accessibility & contrast

On white

1.94
#D9B74F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.84
#D9B74F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D9B74F
10.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D9B74F#FFFFFF#000000##000000
##D9B74F1.001.9410.8410.84
#FFFFFF1.941.0021.0021.00
#00000010.8421.001.001.00
##00000010.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#CAB543
Deuteranopia (green-blind)
#D2BE54
Tritanopia (blue-blind)
#EAA9A1
Achromatopsia (no color)
#BABABA

Design tokens & code

CSS
--color: #d9b74f;
/* rgb */ color: rgb(217, 183, 79);
/* oklch */ color: oklch(79.0% 0.128 91.0);
Tailwind
colors: {
  custom: {
    50: '#e8cc84',
    500: '#d9b74f',
    950: '#000000',
  },
}
SCSS
$custom: #d9b74f;
$custom-light: #e8cc84;
$custom-dark: #000000;
JSON
{
  "hex": "#d9b74f",
  "rgb": {
    "r": 217,
    "g": 183,
    "b": 79
  },
  "hsl": {
    "h": 45.217,
    "s": 64.486,
    "l": 58.039
  },
  "oklch": {
    "l": 0.78967,
    "c": 0.12783,
    "h": 91
  },
  "luminance": 0.49183
}

Semantic roles & 50–950 ramp

primary
#D9B74F
secondary
#A6B4DD
accent
#6AE740
background
#FEFCF8
surface
#FDF8EF
border
#D5D1CA
text
#16130B
muted
#84827C

Preview Lab

Preview with #D9B74F

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

Preview Lab → · Contrast checker → · Palette generator →

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