#D1CC51#D1CC51

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

Color values

HEX#D1CC51
RGBrgb(209, 204, 81)
HSLhsl(58, 58%, 57%)
HSVhsv(58, 61%, 82%)
CMYKcmyk(0%, 2.4%, 61.2%, 18%)
CIE-LABlab(80.37, -13.45, 60.07)
CIE-LCHlch(80.37, 61.55, 102.62°)
OKLaboklab(82.61% -0.0418 0.1371)
OKLCHoklch(82.61% 0.143 106.9)
XYZxyz(49.3742, 57.3367, 16.2492)
Luminance0.5734 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D1CC51 #5156D1
analogous
#D18C51 #D1CC51 #96D151
triadic
#D1CC51 #51D1CC #CC51D1
tetradic
#D1CC51 #51D18C #5156D1 #D15196
square
#D1CC51 #51D18C #5156D1 #D15196
split-complementary
#D1CC51 #5196D1 #8C51D1
monochromatic
#858123 #B5B030 #D1CC51 #DEDA81 #EBE8B2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D1CC51#FFFFFF#000000##000000
##D1CC511.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)
#DCC542
Deuteranopia (green-blind)
#DFCA58
Tritanopia (blue-blind)
#DFC0B2
Achromatopsia (no color)
#C7C7C7

Design tokens & code

CSS
--color: #d1cc51;
/* rgb */ color: rgb(209, 204, 81);
/* oklch */ color: oklch(82.6% 0.143 106.9);
Tailwind
colors: {
  custom: {
    50: '#e2db87',
    500: '#d1cc51',
    950: '#000000',
  },
}
SCSS
$custom: #d1cc51;
$custom-light: #e2db87;
$custom-dark: #000000;
JSON
{
  "hex": "#d1cc51",
  "rgb": {
    "r": 209,
    "g": 204,
    "b": 81
  },
  "hsl": {
    "h": 57.656,
    "s": 58.182,
    "l": 56.863
  },
  "oklch": {
    "l": 0.82613,
    "c": 0.14329,
    "h": 106.9
  },
  "luminance": 0.57335
}

Semantic roles & 50–950 ramp

primary
#D1CC51
secondary
#3B3E8B
accent
#4CE146
background
#FEFEFC
surface
#FCFBF3
border
#D5D4CD
text
#16140C
muted
#84837F

Preview Lab

Preview with #D1CC51

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

Preview Lab → · Contrast checker → · Palette generator →

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