#D9B74E#D9B74E

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

Color values

HEX#D9B74E
RGBrgb(217, 183, 78)
HSLhsl(45, 65%, 58%)
HSVhsv(45, 64%, 85%)
CMYKcmyk(0%, 15.7%, 64.1%, 14.9%)
CIE-LABlab(75.56, 0.54, 56.37)
CIE-LCHlch(75.56, 56.38, 89.46°)
OKLaboklab(78.96% -0.0026 0.1286)
OKLCHoklch(78.96% 0.129 91.2)
XYZxyz(46.9262, 49.1713, 14.2256)
Luminance0.4917 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D9B74E #4E70D9
analogous
#D9724E #D9B74E #B5D94E
triadic
#D9B74E #4ED9B7 #B74ED9
tetradic
#D9B74E #4ED972 #4E70D9 #D94EB5
square
#D9B74E #4ED972 #4E70D9 #D94EB5
split-complementary
#D9B74E #4EB5D9 #724ED9
monochromatic
#8E731F #C09C29 #D9B74E #E4CB80 #EFE0B3

Accessibility & contrast

On white

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

On black

10.83
#D9B74E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D9B74E
10.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D9B74E#FFFFFF#000000##000000
##D9B74E1.001.9410.8310.83
#FFFFFF1.941.0021.0021.00
#00000010.8321.001.001.00
##00000010.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#CAB542
Deuteranopia (green-blind)
#D2BE53
Tritanopia (blue-blind)
#EAA9A0
Achromatopsia (no color)
#BABABA

Design tokens & code

CSS
--color: #d9b74e;
/* rgb */ color: rgb(217, 183, 78);
/* oklch */ color: oklch(79.0% 0.129 91.2);
Tailwind
colors: {
  custom: {
    50: '#e8cc84',
    500: '#d9b74e',
    950: '#000000',
  },
}
SCSS
$custom: #d9b74e;
$custom-light: #e8cc84;
$custom-dark: #000000;
JSON
{
  "hex": "#d9b74e",
  "rgb": {
    "r": 217,
    "g": 183,
    "b": 78
  },
  "hsl": {
    "h": 45.324,
    "s": 64.651,
    "l": 57.843
  },
  "oklch": {
    "l": 0.78957,
    "c": 0.12862,
    "h": 91.2
  },
  "luminance": 0.49169
}

Semantic roles & 50–950 ramp

primary
#D9B74E
secondary
#A6B3DD
accent
#69E840
background
#FEFCF8
surface
#FDF8EF
border
#D5D1CA
text
#17130B
muted
#85827C

Preview Lab

Preview with #D9B74E

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

Preview Lab → · Contrast checker → · Palette generator →

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