#D9C74A#D9C74A

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

Color values

HEX#D9C74A
RGBrgb(217, 199, 74)
HSLhsl(52, 65%, 57%)
HSVhsv(52, 66%, 85%)
CMYKcmyk(0%, 8.3%, 65.9%, 14.9%)
CIE-LABlab(79.67, -7.99, 62.45)
CIE-LCHlch(79.67, 62.95, 97.29°)
OKLaboklab(82.2% -0.0275 0.1408)
OKLCHoklch(82.2% 0.144 101)
XYZxyz(50.2768, 56.0951, 14.6564)
Luminance0.5609 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D9C74A #4A5CD9
analogous
#D9804A #D9C74A #A3D94A
triadic
#D9C74A #4AD9C7 #C74AD9
tetradic
#D9C74A #4AD980 #4A5CD9 #D94AA3
square
#D9C74A #4AD980 #4A5CD9 #D94AA3
split-complementary
#D9C74A #4AA3D9 #804AD9
monochromatic
#8B7D1D #BEAB28 #D9C74A #E4D77D #EEE6AF

Accessibility & contrast

On white

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

On black

12.22
#D9C74A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D9C74A
12.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D9C74A#FFFFFF#000000##000000
##D9C74A1.001.7212.2212.22
#FFFFFF1.721.0021.0021.00
#00000012.2221.001.001.00
##00000012.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#D9C13A
Deuteranopia (green-blind)
#DEC951
Tritanopia (blue-blind)
#E9B9AD
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #d9c74a;
/* rgb */ color: rgb(217, 199, 74);
/* oklch */ color: oklch(82.2% 0.143 101.0);
Tailwind
colors: {
  custom: {
    50: '#e8d783',
    500: '#d9c74a',
    950: '#000000',
  },
}
SCSS
$custom: #d9c74a;
$custom-light: #e8d783;
$custom-dark: #000000;
JSON
{
  "hex": "#d9c74a",
  "rgb": {
    "r": 217,
    "g": 199,
    "b": 74
  },
  "hsl": {
    "h": 52.448,
    "s": 65.297,
    "l": 57.059
  },
  "oklch": {
    "l": 0.822,
    "c": 0.1435,
    "h": 101
  },
  "luminance": 0.56093
}

Semantic roles & 50–950 ramp

primary
#D9C74A
secondary
#364291
accent
#55E840
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140B
muted
#85837E

Preview Lab

Preview with #D9C74A

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

Preview Lab → · Contrast checker → · Palette generator →

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