#D9C240#D9C240

#D9C240 is a light, vivid yellow. Relative luminance 0.537; OKLCH L 81.1% C 0.146 H 99.0°. Best body text is #000000 at 11.74:1 contrast (WCAG AA passes).

Color values

HEX#D9C240
RGBrgb(217, 194, 64)
HSLhsl(51, 67%, 55%)
HSVhsv(51, 71%, 85%)
CMYKcmyk(0%, 10.6%, 70.5%, 14.9%)
CIE-LABlab(78.29, -5.96, 65.00)
CIE-LCHlch(78.29, 65.27, 95.24°)
OKLaboklab(81.08% -0.0228 0.1446)
OKLCHoklch(81.08% 0.146 99)
XYZxyz(48.8348, 53.7078, 12.6438)
Luminance0.5371 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D9C240 #4057D9
analogous
#D97540 #D9C240 #A4D940
triadic
#D9C240 #40D9C2 #C240D9
tetradic
#D9C240 #40D975 #4057D9 #D940A4
square
#D9C240 #40D975 #4057D9 #D940A4
split-complementary
#D9C240 #40A4D9 #7540D9
monochromatic
#84741A #B7A124 #D9C240 #E3D273 #EDE3A6

Accessibility & contrast

On white

1.79
#D9C240 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.74
#D9C240 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D9C240
11.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D9C240#FFFFFF#000000##000000
##D9C2401.001.7911.7411.74
#FFFFFF1.791.0021.0021.00
#00000011.7421.001.001.00
##00000011.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#D5BD2C
Deuteranopia (green-blind)
#DBC548
Tritanopia (blue-blind)
#EAB4A8
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #d9c240;
/* rgb */ color: rgb(217, 194, 64);
/* oklch */ color: oklch(81.1% 0.146 99.0);
Tailwind
colors: {
  custom: {
    50: '#e9d47d',
    500: '#d9c240',
    950: '#000000',
  },
}
SCSS
$custom: #d9c240;
$custom-light: #e9d47d;
$custom-dark: #000000;
JSON
{
  "hex": "#d9c240",
  "rgb": {
    "r": 217,
    "g": 194,
    "b": 64
  },
  "hsl": {
    "h": 50.98,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.81085,
    "c": 0.14634,
    "h": 99
  },
  "luminance": 0.53705
}

Semantic roles & 50–950 ramp

primary
#D9C240
secondary
#32408B
accent
#58EA3E
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#17140A
muted
#85837D

Preview Lab

Preview with #D9C240

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

Preview Lab → · Contrast checker → · Palette generator →

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