#D1CC42#D1CC42

#D1CC42 is a very light, vivid yellow. Relative luminance 0.571; OKLCH L 82.5% C 0.154 H 107.3°. Best body text is #000000 at 12.43:1 contrast (WCAG AA passes).

Color values

HEX#D1CC42
RGBrgb(209, 204, 66)
HSLhsl(58, 61%, 54%)
HSVhsv(58, 68%, 82%)
CMYKcmyk(0%, 2.4%, 68.4%, 18%)
CIE-LABlab(80.26, -14.33, 65.97)
CIE-LCHlch(80.26, 67.50, 102.25°)
OKLaboklab(82.49% -0.0458 0.1472)
OKLCHoklch(82.49% 0.154 107.3)
XYZxyz(48.8725, 57.1360, 13.6071)
Luminance0.5713 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D1CC42 #4247D1
analogous
#D18542 #D1CC42 #8FD142
triadic
#D1CC42 #42D1CC #CC42D1
tetradic
#D1CC42 #42D185 #4247D1 #D1428F
square
#D1CC42 #42D185 #4247D1 #D1428F
split-complementary
#D1CC42 #428FD1 #8542D1
monochromatic
#7B771E #ACA72A #D1CC42 #DDD973 #E9E7A4

Accessibility & contrast

On white

1.69
#D1CC42 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.43
#D1CC42 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D1CC42
12.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D1CC42#FFFFFF#000000##000000
##D1CC421.001.6912.4312.43
#FFFFFF1.691.0021.0021.00
#00000012.4321.001.001.00
##00000012.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#DDC42D
Deuteranopia (green-blind)
#DFC94B
Tritanopia (blue-blind)
#E0BFB1
Achromatopsia (no color)
#C7C7C7

Design tokens & code

CSS
--color: #d1cc42;
/* rgb */ color: rgb(209, 204, 66);
/* oklch */ color: oklch(82.5% 0.154 107.3);
Tailwind
colors: {
  custom: {
    50: '#e3db7e',
    500: '#d1cc42',
    950: '#000000',
  },
}
SCSS
$custom: #d1cc42;
$custom-light: #e3db7e;
$custom-dark: #000000;
JSON
{
  "hex": "#d1cc42",
  "rgb": {
    "r": 209,
    "g": 204,
    "b": 66
  },
  "hsl": {
    "h": 57.902,
    "s": 60.851,
    "l": 53.922
  },
  "oklch": {
    "l": 0.82487,
    "c": 0.15418,
    "h": 107.3
  },
  "luminance": 0.57134
}

Semantic roles & 50–950 ramp

primary
#D1CC42
secondary
#353783
accent
#49E444
background
#FEFEFB
surface
#FDFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #D1CC42

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

Preview Lab → · Contrast checker → · Palette generator →

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