#D9C74E#D9C74E

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

Color values

HEX#D9C74E
RGBrgb(217, 199, 78)
HSLhsl(52, 65%, 58%)
HSVhsv(52, 64%, 85%)
CMYKcmyk(0%, 8.3%, 64.1%, 14.9%)
CIE-LABlab(79.70, -7.75, 60.82)
CIE-LCHlch(79.70, 61.31, 97.27°)
OKLaboklab(82.24% -0.0264 0.138)
OKLCHoklch(82.24% 0.141 100.8)
XYZxyz(50.4159, 56.1508, 15.3888)
Luminance0.5615 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D9C74E #4E60D9
analogous
#D9814E #D9C74E #A6D94E
triadic
#D9C74E #4ED9C7 #C74ED9
tetradic
#D9C74E #4ED981 #4E60D9 #D94EA6
square
#D9C74E #4ED981 #4E60D9 #D94EA6
split-complementary
#D9C74E #4EA6D9 #814ED9
monochromatic
#8E801F #C0AD29 #D9C74E #E4D780 #EFE7B3

Accessibility & contrast

On white

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

On black

12.23
#D9C74E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D9C74E
12.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D9C74E#FFFFFF#000000##000000
##D9C74E1.001.7212.2312.23
#FFFFFF1.721.0021.0021.00
#00000012.2321.001.001.00
##00000012.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#D9C13F
Deuteranopia (green-blind)
#DEC955
Tritanopia (blue-blind)
#E9BAAE
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #d9c74e;
/* rgb */ color: rgb(217, 199, 78);
/* oklch */ color: oklch(82.2% 0.141 100.8);
Tailwind
colors: {
  custom: {
    50: '#e8d785',
    500: '#d9c74e',
    950: '#000000',
  },
}
SCSS
$custom: #d9c74e;
$custom-light: #e8d785;
$custom-dark: #000000;
JSON
{
  "hex": "#d9c74e",
  "rgb": {
    "r": 217,
    "g": 199,
    "b": 78
  },
  "hsl": {
    "h": 52.23,
    "s": 64.651,
    "l": 57.843
  },
  "oklch": {
    "l": 0.82235,
    "c": 0.14052,
    "h": 100.8
  },
  "luminance": 0.56149
}

Semantic roles & 50–950 ramp

primary
#D9C74E
secondary
#384494
accent
#56E840
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140B
muted
#85837E

Preview Lab

Preview with #D9C74E

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

Preview Lab → · Contrast checker → · Palette generator →

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