#D2CC42#D2CC42

#D2CC42 is a very light, vivid yellow. Relative luminance 0.573; OKLCH L 82.6% C 0.154 H 106.9°. Best body text is #000000 at 12.46:1 contrast (WCAG AA passes).

Color values

HEX#D2CC42
RGBrgb(210, 204, 66)
HSLhsl(58, 62%, 54%)
HSVhsv(58, 69%, 82%)
CMYKcmyk(0%, 2.9%, 68.6%, 17.6%)
CIE-LABlab(80.34, -13.91, 66.08)
CIE-LCHlch(80.34, 67.52, 101.89°)
OKLaboklab(82.57% -0.0447 0.1474)
OKLCHoklch(82.57% 0.154 106.9)
XYZxyz(49.1564, 57.2824, 13.6205)
Luminance0.5728 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2CC42 #4248D2
analogous
#D28442 #D2CC42 #90D242
triadic
#D2CC42 #42D2CC #CC42D2
tetradic
#D2CC42 #42D284 #4248D2 #D24290
square
#D2CC42 #42D284 #4248D2 #D24290
split-complementary
#D2CC42 #4290D2 #8442D2
monochromatic
#7C781E #ADA829 #D2CC42 #DED973 #EAE7A5

Accessibility & contrast

On white

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

On black

12.46
#D2CC42 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2CC42
12.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2CC42#FFFFFF#000000##000000
##D2CC421.001.6912.4612.46
#FFFFFF1.691.0021.0021.00
#00000012.4621.001.001.00
##00000012.4621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d2cc42;
/* rgb */ color: rgb(210, 204, 66);
/* oklch */ color: oklch(82.6% 0.154 106.9);
Tailwind
colors: {
  custom: {
    50: '#e3db7f',
    500: '#d2cc42',
    950: '#000000',
  },
}
SCSS
$custom: #d2cc42;
$custom-light: #e3db7f;
$custom-dark: #000000;
JSON
{
  "hex": "#d2cc42",
  "rgb": {
    "r": 210,
    "g": 204,
    "b": 66
  },
  "hsl": {
    "h": 57.5,
    "s": 61.538,
    "l": 54.118
  },
  "oklch": {
    "l": 0.82572,
    "c": 0.15404,
    "h": 106.9
  },
  "luminance": 0.57281
}

Semantic roles & 50–950 ramp

primary
#D2CC42
secondary
#343884
accent
#4AE543
background
#FEFEFB
surface
#FDFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #D2CC42

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

Preview Lab → · Contrast checker → · Palette generator →

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