#D9C74D#D9C74D

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

Color values

HEX#D9C74D
RGBrgb(217, 199, 77)
HSLhsl(52, 65%, 58%)
HSVhsv(52, 65%, 85%)
CMYKcmyk(0%, 8.3%, 64.5%, 14.9%)
CIE-LABlab(79.69, -7.82, 61.23)
CIE-LCHlch(79.69, 61.73, 97.27°)
OKLaboklab(82.23% -0.0267 0.1387)
OKLCHoklch(82.23% 0.141 100.9)
XYZxyz(50.3803, 56.1365, 15.2014)
Luminance0.5613 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D9C74D #4D5FD9
analogous
#D9814D #D9C74D #A5D94D
triadic
#D9C74D #4DD9C7 #C74DD9
tetradic
#D9C74D #4DD981 #4D5FD9 #D94DA5
square
#D9C74D #4DD981 #4D5FD9 #D94DA5
split-complementary
#D9C74D #4DA5D9 #814DD9
monochromatic
#8D7F1E #C0AC29 #D9C74D #E4D77F #EFE7B2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D9C74D#FFFFFF#000000##000000
##D9C74D1.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)
#D9C13E
Deuteranopia (green-blind)
#DEC954
Tritanopia (blue-blind)
#E9BAAE
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #d9c74d;
/* rgb */ color: rgb(217, 199, 77);
/* oklch */ color: oklch(82.2% 0.141 100.9);
Tailwind
colors: {
  custom: {
    50: '#e8d784',
    500: '#d9c74d',
    950: '#000000',
  },
}
SCSS
$custom: #d9c74d;
$custom-light: #e8d784;
$custom-dark: #000000;
JSON
{
  "hex": "#d9c74d",
  "rgb": {
    "r": 217,
    "g": 199,
    "b": 77
  },
  "hsl": {
    "h": 52.286,
    "s": 64.815,
    "l": 57.647
  },
  "oklch": {
    "l": 0.82226,
    "c": 0.14128,
    "h": 100.9
  },
  "luminance": 0.56134
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D9C74D

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

Preview Lab → · Contrast checker → · Palette generator →

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