#D1CC52#D1CC52

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

Color values

HEX#D1CC52
RGBrgb(209, 204, 82)
HSLhsl(58, 58%, 57%)
HSVhsv(58, 61%, 82%)
CMYKcmyk(0%, 2.4%, 60.8%, 18%)
CIE-LABlab(80.38, -13.38, 59.65)
CIE-LCHlch(80.38, 61.13, 102.64°)
OKLaboklab(82.62% -0.0415 0.1363)
OKLCHoklch(82.62% 0.142 106.9)
XYZxyz(49.4120, 57.3518, 16.4482)
Luminance0.5735 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D1CC52 #5257D1
analogous
#D18D52 #D1CC52 #97D152
triadic
#D1CC52 #52D1CC #CC52D1
tetradic
#D1CC52 #52D18D #5257D1 #D15297
square
#D1CC52 #52D18D #5257D1 #D15297
split-complementary
#D1CC52 #5297D1 #8D52D1
monochromatic
#858123 #B6B030 #D1CC52 #DEDA82 #EBE9B3

Accessibility & contrast

On white

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

On black

12.47
#D1CC52 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D1CC52
12.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D1CC52#FFFFFF#000000##000000
##D1CC521.001.6812.4712.47
#FFFFFF1.681.0021.0021.00
#00000012.4721.001.001.00
##00000012.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#DCC544
Deuteranopia (green-blind)
#DFCA59
Tritanopia (blue-blind)
#DFC0B2
Achromatopsia (no color)
#C7C7C7

Design tokens & code

CSS
--color: #d1cc52;
/* rgb */ color: rgb(209, 204, 82);
/* oklch */ color: oklch(82.6% 0.142 106.9);
Tailwind
colors: {
  custom: {
    50: '#e2db88',
    500: '#d1cc52',
    950: '#000000',
  },
}
SCSS
$custom: #d1cc52;
$custom-light: #e2db88;
$custom-dark: #000000;
JSON
{
  "hex": "#d1cc52",
  "rgb": {
    "r": 209,
    "g": 204,
    "b": 82
  },
  "hsl": {
    "h": 57.638,
    "s": 57.991,
    "l": 57.059
  },
  "oklch": {
    "l": 0.82622,
    "c": 0.14249,
    "h": 106.9
  },
  "luminance": 0.5735
}

Semantic roles & 50–950 ramp

primary
#D1CC52
secondary
#3B3E8C
accent
#4DE147
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#16140C
muted
#84837F

Preview Lab

Preview with #D1CC52

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

Preview Lab → · Contrast checker → · Palette generator →

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