#D9CB40#D9CB40

#D9CB40 is a very light, vivid yellow. Relative luminance 0.578; OKLCH L 83.0% C 0.154 H 103.5°. Best body text is #000000 at 12.57:1 contrast (WCAG AA passes).

Color values

HEX#D9CB40
RGBrgb(217, 203, 64)
HSLhsl(55, 67%, 55%)
HSVhsv(55, 71%, 85%)
CMYKcmyk(0%, 6.5%, 70.5%, 14.9%)
CIE-LABlab(80.65, -10.55, 67.32)
CIE-LCHlch(80.65, 68.14, 98.91°)
OKLaboklab(82.96% -0.0358 0.1495)
OKLCHoklch(82.96% 0.154 103.5)
XYZxyz(50.8988, 57.8358, 13.3318)
Luminance0.5783 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D9CB40 #404ED9
analogous
#D97F40 #D9CB40 #9AD940
triadic
#D9CB40 #40D9CB #CB40D9
tetradic
#D9CB40 #40D97F #404ED9 #D9409A
square
#D9CB40 #40D97F #404ED9 #D9409A
split-complementary
#D9CB40 #409AD9 #7F40D9
monochromatic
#847B1A #B7AA24 #D9CB40 #E3D973 #EDE7A6

Accessibility & contrast

On white

1.67
#D9CB40 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.57
#D9CB40 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D9CB40
12.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D9CB40#FFFFFF#000000##000000
##D9CB401.001.6712.5712.57
#FFFFFF1.671.0021.0021.00
#00000012.5721.001.001.00
##00000012.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#DDC429
Deuteranopia (green-blind)
#E2CB49
Tritanopia (blue-blind)
#E9BDB0
Achromatopsia (no color)
#C8C8C8

Design tokens & code

CSS
--color: #d9cb40;
/* rgb */ color: rgb(217, 203, 64);
/* oklch */ color: oklch(83.0% 0.154 103.5);
Tailwind
colors: {
  custom: {
    50: '#e8da7d',
    500: '#d9cb40',
    950: '#000000',
  },
}
SCSS
$custom: #d9cb40;
$custom-light: #e8da7d;
$custom-dark: #000000;
JSON
{
  "hex": "#d9cb40",
  "rgb": {
    "r": 217,
    "g": 203,
    "b": 64
  },
  "hsl": {
    "h": 54.51,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.82956,
    "c": 0.15369,
    "h": 103.5
  },
  "luminance": 0.57834
}

Semantic roles & 50–950 ramp

primary
#D9CB40
secondary
#323A8B
accent
#4EEA3E
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#17140A
muted
#85837D

Preview Lab

Preview with #D9CB40

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

Preview Lab → · Contrast checker → · Palette generator →

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