#D9C74F#D9C74F

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

Color values

HEX#D9C74F
RGBrgb(217, 199, 79)
HSLhsl(52, 64%, 58%)
HSVhsv(52, 64%, 85%)
CMYKcmyk(0%, 8.3%, 63.6%, 14.9%)
CIE-LABlab(79.71, -7.69, 60.41)
CIE-LCHlch(79.71, 60.90, 97.26°)
OKLaboklab(82.24% -0.0261 0.1373)
OKLCHoklch(82.24% 0.14 100.8)
XYZxyz(50.4520, 56.1652, 15.5791)
Luminance0.5616 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D9C74F #4F61D9
analogous
#D9824F #D9C74F #A6D94F
triadic
#D9C74F #4FD9C7 #C74FD9
tetradic
#D9C74F #4FD982 #4F61D9 #D94FA6
square
#D9C74F #4FD982 #4F61D9 #D94FA6
split-complementary
#D9C74F #4FA6D9 #824FD9
monochromatic
#8F801F #C1AD2A #D9C74F #E4D781 #EFE7B4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D9C74F#FFFFFF#000000##000000
##D9C74F1.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)
#D9C141
Deuteranopia (green-blind)
#DEC956
Tritanopia (blue-blind)
#E9BAAE
Achromatopsia (no color)
#C6C6C6

Design tokens & code

CSS
--color: #d9c74f;
/* rgb */ color: rgb(217, 199, 79);
/* oklch */ color: oklch(82.2% 0.140 100.8);
Tailwind
colors: {
  custom: {
    50: '#e8d786',
    500: '#d9c74f',
    950: '#000000',
  },
}
SCSS
$custom: #d9c74f;
$custom-light: #e8d786;
$custom-dark: #000000;
JSON
{
  "hex": "#d9c74f",
  "rgb": {
    "r": 217,
    "g": 199,
    "b": 79
  },
  "hsl": {
    "h": 52.174,
    "s": 64.486,
    "l": 58.039
  },
  "oklch": {
    "l": 0.82244,
    "c": 0.13975,
    "h": 100.8
  },
  "luminance": 0.56163
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D9C74F

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

Preview Lab → · Contrast checker → · Palette generator →

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