#D9CD40#D9CD40

#D9CD40 is a very light, vivid yellow. Relative luminance 0.588; OKLCH L 83.4% C 0.155 H 104.4°. Best body text is #000000 at 12.76:1 contrast (WCAG AA passes).

Color values

HEX#D9CD40
RGBrgb(217, 205, 64)
HSLhsl(55, 67%, 55%)
HSVhsv(55, 71%, 85%)
CMYKcmyk(0%, 5.5%, 70.5%, 14.9%)
CIE-LABlab(81.17, -11.56, 67.84)
CIE-LCHlch(81.17, 68.81, 99.67°)
OKLaboklab(83.38% -0.0387 0.1506)
OKLCHoklch(83.38% 0.155 104.4)
XYZxyz(51.3741, 58.7865, 13.4903)
Luminance0.5878 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D9CD40 #404CD9
analogous
#D98040 #D9CD40 #99D940
triadic
#D9CD40 #40D9CD #CD40D9
tetradic
#D9CD40 #40D980 #404CD9 #D94099
square
#D9CD40 #40D980 #404CD9 #D94099
split-complementary
#D9CD40 #4099D9 #8040D9
monochromatic
#847C1A #B7AC24 #D9CD40 #E3DA73 #EDE8A6

Accessibility & contrast

On white

1.65
#D9CD40 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.76
#D9CD40 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D9CD40
12.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D9CD40#FFFFFF#000000##000000
##D9CD401.001.6512.7612.76
#FFFFFF1.651.0021.0021.00
#00000012.7621.001.001.00
##00000012.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#DFC629
Deuteranopia (green-blind)
#E3CD4A
Tritanopia (blue-blind)
#E9BFB1
Achromatopsia (no color)
#CACACA

Design tokens & code

CSS
--color: #d9cd40;
/* rgb */ color: rgb(217, 205, 64);
/* oklch */ color: oklch(83.4% 0.155 104.4);
Tailwind
colors: {
  custom: {
    50: '#e8db7e',
    500: '#d9cd40',
    950: '#000000',
  },
}
SCSS
$custom: #d9cd40;
$custom-light: #e8db7e;
$custom-dark: #000000;
JSON
{
  "hex": "#d9cd40",
  "rgb": {
    "r": 217,
    "g": 205,
    "b": 64
  },
  "hsl": {
    "h": 55.294,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.83375,
    "c": 0.15545,
    "h": 104.4
  },
  "luminance": 0.58785
}

Semantic roles & 50–950 ramp

primary
#D9CD40
secondary
#32398B
accent
#4CEA3E
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#17150A
muted
#85847D

Preview Lab

Preview with #D9CD40

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

Preview Lab → · Contrast checker → · Palette generator →

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