#D2CC51#D2CC51

#D2CC51 is a very light, vivid yellow. Relative luminance 0.575; OKLCH L 82.7% C 0.143 H 106.5°. Best body text is #000000 at 12.50:1 contrast (WCAG AA passes).

Color values

HEX#D2CC51
RGBrgb(210, 204, 81)
HSLhsl(57, 59%, 57%)
HSVhsv(57, 61%, 82%)
CMYKcmyk(0%, 2.9%, 61.4%, 17.6%)
CIE-LABlab(80.45, -13.03, 60.18)
CIE-LCHlch(80.45, 61.57, 102.22°)
OKLaboklab(82.7% -0.0406 0.1373)
OKLCHoklch(82.7% 0.143 106.5)
XYZxyz(49.6581, 57.4831, 16.2625)
Luminance0.5748 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2CC51 #5157D2
analogous
#D28B51 #D2CC51 #98D251
triadic
#D2CC51 #51D2CC #CC51D2
tetradic
#D2CC51 #51D28B #5157D2 #D25198
square
#D2CC51 #51D28B #5157D2 #D25198
split-complementary
#D2CC51 #5198D2 #8B51D2
monochromatic
#868123 #B7B02F #D2CC51 #DFDA82 #EBE9B2

Accessibility & contrast

On white

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

On black

12.50
#D2CC51 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2CC51
12.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2CC51#FFFFFF#000000##000000
##D2CC511.001.6812.5012.50
#FFFFFF1.681.0021.0021.00
#00000012.5021.001.001.00
##00000012.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#DCC542
Deuteranopia (green-blind)
#DFCA58
Tritanopia (blue-blind)
#E0BFB2
Achromatopsia (no color)
#C8C8C8

Design tokens & code

CSS
--color: #d2cc51;
/* rgb */ color: rgb(210, 204, 81);
/* oklch */ color: oklch(82.7% 0.143 106.5);
Tailwind
colors: {
  custom: {
    50: '#e3db87',
    500: '#d2cc51',
    950: '#000000',
  },
}
SCSS
$custom: #d2cc51;
$custom-light: #e3db87;
$custom-dark: #000000;
JSON
{
  "hex": "#d2cc51",
  "rgb": {
    "r": 210,
    "g": 204,
    "b": 81
  },
  "hsl": {
    "h": 57.209,
    "s": 58.904,
    "l": 57.059
  },
  "oklch": {
    "l": 0.82698,
    "c": 0.14317,
    "h": 106.5
  },
  "luminance": 0.57481
}

Semantic roles & 50–950 ramp

primary
#D2CC51
secondary
#3B3E8D
accent
#4DE246
background
#FEFEFC
surface
#FDFBF3
border
#D5D4CD
text
#16140C
muted
#84837F

Preview Lab

Preview with #D2CC51

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

Preview Lab → · Contrast checker → · Palette generator →

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