#D9C440#D9C440

#D9C440 is a light, vivid yellow. Relative luminance 0.546; OKLCH L 81.5% C 0.148 H 100.0°. Best body text is #000000 at 11.92:1 contrast (WCAG AA passes).

Color values

HEX#D9C440
RGBrgb(217, 196, 64)
HSLhsl(52, 67%, 55%)
HSVhsv(52, 71%, 85%)
CMYKcmyk(0%, 9.7%, 70.5%, 14.9%)
CIE-LABlab(78.81, -6.99, 65.51)
CIE-LCHlch(78.81, 65.88, 96.09°)
OKLaboklab(81.5% -0.0257 0.1456)
OKLCHoklch(81.5% 0.148 100)
XYZxyz(49.2829, 54.6040, 12.7932)
Luminance0.5460 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D9C440 #4055D9
analogous
#D97840 #D9C440 #A1D940
triadic
#D9C440 #40D9C4 #C440D9
tetradic
#D9C440 #40D978 #4055D9 #D940A1
square
#D9C440 #40D978 #4055D9 #D940A1
split-complementary
#D9C440 #40A1D9 #7840D9
monochromatic
#84761A #B7A324 #D9C440 #E3D473 #EDE4A6

Accessibility & contrast

On white

1.76
#D9C440 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.92
#D9C440 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D9C440
11.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D9C440#FFFFFF#000000##000000
##D9C4401.001.7611.9211.92
#FFFFFF1.761.0021.0021.00
#00000011.9221.001.001.00
##00000011.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#D7BF2C
Deuteranopia (green-blind)
#DCC748
Tritanopia (blue-blind)
#EAB6AA
Achromatopsia (no color)
#C3C3C3

Design tokens & code

CSS
--color: #d9c440;
/* rgb */ color: rgb(217, 196, 64);
/* oklch */ color: oklch(81.5% 0.148 100.0);
Tailwind
colors: {
  custom: {
    50: '#e9d57d',
    500: '#d9c440',
    950: '#000000',
  },
}
SCSS
$custom: #d9c440;
$custom-light: #e9d57d;
$custom-dark: #000000;
JSON
{
  "hex": "#d9c440",
  "rgb": {
    "r": 217,
    "g": 196,
    "b": 64
  },
  "hsl": {
    "h": 51.765,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.81498,
    "c": 0.1479,
    "h": 100
  },
  "luminance": 0.54602
}

Semantic roles & 50–950 ramp

primary
#D9C440
secondary
#323F8B
accent
#56EA3E
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#17140A
muted
#85837D

Preview Lab

Preview with #D9C440

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

Preview Lab → · Contrast checker → · Palette generator →

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