#D0CC42#D0CC42

#D0CC42 is a very light, vivid yellow. Relative luminance 0.570; OKLCH L 82.4% C 0.154 H 107.7°. Best body text is #000000 at 12.40:1 contrast (WCAG AA passes).

Color values

HEX#D0CC42
RGBrgb(208, 204, 66)
HSLhsl(58, 60%, 54%)
HSVhsv(58, 68%, 82%)
CMYKcmyk(0%, 1.9%, 68.3%, 18.4%)
CIE-LABlab(80.17, -14.75, 65.86)
CIE-LCHlch(80.17, 67.49, 102.62°)
OKLaboklab(82.4% -0.0469 0.147)
OKLCHoklch(82.4% 0.154 107.7)
XYZxyz(48.5904, 56.9906, 13.5939)
Luminance0.5699 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D0CC42 #4246D0
analogous
#D08542 #D0CC42 #8DD042
triadic
#D0CC42 #42D0CC #CC42D0
tetradic
#D0CC42 #42D085 #4246D0 #D0428D
square
#D0CC42 #42D085 #4246D0 #D0428D
split-complementary
#D0CC42 #428DD0 #8542D0
monochromatic
#79771E #AAA72A #D0CC42 #DCD973 #E8E6A4

Accessibility & contrast

On white

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

On black

12.40
#D0CC42 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D0CC42
12.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D0CC42#FFFFFF#000000##000000
##D0CC421.001.6912.4012.40
#FFFFFF1.691.0021.0021.00
#00000012.4021.001.001.00
##00000012.4021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d0cc42;
/* rgb */ color: rgb(208, 204, 66);
/* oklch */ color: oklch(82.4% 0.154 107.7);
Tailwind
colors: {
  custom: {
    50: '#e2db7e',
    500: '#d0cc42',
    950: '#000000',
  },
}
SCSS
$custom: #d0cc42;
$custom-light: #e2db7e;
$custom-dark: #000000;
JSON
{
  "hex": "#d0cc42",
  "rgb": {
    "r": 208,
    "g": 204,
    "b": 66
  },
  "hsl": {
    "h": 58.31,
    "s": 60.169,
    "l": 53.725
  },
  "oklch": {
    "l": 0.82402,
    "c": 0.15433,
    "h": 107.7
  },
  "luminance": 0.56989
}

Semantic roles & 50–950 ramp

primary
#D0CC42
secondary
#353781
accent
#49E344
background
#FEFEFB
surface
#FDFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #D0CC42

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

Preview Lab → · Contrast checker → · Palette generator →

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