#D1CD42#D1CD42

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

Color values

HEX#D1CD42
RGBrgb(209, 205, 66)
HSLhsl(58, 61%, 54%)
HSVhsv(58, 68%, 82%)
CMYKcmyk(0%, 1.9%, 68.4%, 18%)
CIE-LABlab(80.52, -14.83, 66.23)
CIE-LCHlch(80.52, 67.87, 102.62°)
OKLaboklab(82.7% -0.0472 0.1478)
OKLCHoklch(82.7% 0.155 107.7)
XYZxyz(49.1110, 57.6129, 13.6866)
Luminance0.5761 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D1CD42 #4246D1
analogous
#D18642 #D1CD42 #8ED142
triadic
#D1CD42 #42D1CD #CD42D1
tetradic
#D1CD42 #42D186 #4246D1 #D1428E
square
#D1CD42 #42D186 #4246D1 #D1428E
split-complementary
#D1CD42 #428ED1 #8642D1
monochromatic
#7B781E #ACA82A #D1CD42 #DDDA73 #E9E7A4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D1CD42#FFFFFF#000000##000000
##D1CD421.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)
#DEC52C
Deuteranopia (green-blind)
#E0CA4C
Tritanopia (blue-blind)
#E0C0B1
Achromatopsia (no color)
#C8C8C8

Design tokens & code

CSS
--color: #d1cd42;
/* rgb */ color: rgb(209, 205, 66);
/* oklch */ color: oklch(82.7% 0.155 107.7);
Tailwind
colors: {
  custom: {
    50: '#e3dc7f',
    500: '#d1cd42',
    950: '#000000',
  },
}
SCSS
$custom: #d1cd42;
$custom-light: #e3dc7f;
$custom-dark: #000000;
JSON
{
  "hex": "#d1cd42",
  "rgb": {
    "r": 209,
    "g": 205,
    "b": 66
  },
  "hsl": {
    "h": 58.322,
    "s": 60.851,
    "l": 53.922
  },
  "oklch": {
    "l": 0.827,
    "c": 0.15513,
    "h": 107.7
  },
  "luminance": 0.57611
}

Semantic roles & 50–950 ramp

primary
#D1CD42
secondary
#353783
accent
#48E444
background
#FEFEFB
surface
#FDFBF2
border
#D5D4CC
text
#16150B
muted
#84847E

Preview Lab

Preview with #D1CD42

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

Preview Lab → · Contrast checker → · Palette generator →

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