#D1CD40#D1CD40

#D1CD40 is a very light, vivid yellow. Relative luminance 0.576; OKLCH L 82.7% C 0.156 H 107.8°. Best body text is #000000 at 12.52:1 contrast (WCAG AA passes).

Color values

HEX#D1CD40
RGBrgb(209, 205, 64)
HSLhsl(58, 61%, 54%)
HSVhsv(58, 69%, 82%)
CMYKcmyk(0%, 1.9%, 69.4%, 18%)
CIE-LABlab(80.51, -14.93, 66.96)
CIE-LCHlch(80.51, 68.60, 102.57°)
OKLaboklab(82.69% -0.0477 0.149)
OKLCHoklch(82.69% 0.156 107.8)
XYZxyz(49.0530, 57.5897, 13.3815)
Luminance0.5759 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D1CD40 #4044D1
analogous
#D18440 #D1CD40 #8CD140
triadic
#D1CD40 #40D1CD #CD40D1
tetradic
#D1CD40 #40D184 #4044D1 #D1408C
square
#D1CD40 #40D184 #4044D1 #D1408C
split-complementary
#D1CD40 #408CD1 #8440D1
monochromatic
#79771D #ABA729 #D1CD40 #DDDA71 #E9E7A3

Accessibility & contrast

On white

1.68
#D1CD40 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.52
#D1CD40 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D1CD40
12.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D1CD40#FFFFFF#000000##000000
##D1CD401.001.6812.5212.52
#FFFFFF1.681.0021.0021.00
#00000012.5221.001.001.00
##00000012.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#DEC529
Deuteranopia (green-blind)
#E0CA4A
Tritanopia (blue-blind)
#E0C0B1
Achromatopsia (no color)
#C8C8C8

Design tokens & code

CSS
--color: #d1cd40;
/* rgb */ color: rgb(209, 205, 64);
/* oklch */ color: oklch(82.7% 0.156 107.8);
Tailwind
colors: {
  custom: {
    50: '#e3dc7e',
    500: '#d1cd40',
    950: '#000000',
  },
}
SCSS
$custom: #d1cd40;
$custom-light: #e3dc7e;
$custom-dark: #000000;
JSON
{
  "hex": "#d1cd40",
  "rgb": {
    "r": 209,
    "g": 205,
    "b": 64
  },
  "hsl": {
    "h": 58.345,
    "s": 61.181,
    "l": 53.529
  },
  "oklch": {
    "l": 0.82685,
    "c": 0.15642,
    "h": 107.8
  },
  "luminance": 0.57588
}

Semantic roles & 50–950 ramp

primary
#D1CD40
secondary
#343681
accent
#48E444
background
#FEFEFB
surface
#FDFBF2
border
#D5D4CC
text
#16150A
muted
#84847D

Preview Lab

Preview with #D1CD40

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

Preview Lab → · Contrast checker → · Palette generator →

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