#D2CC5A#D2CC5A

#D2CC5A is a very light, vivid yellow. Relative luminance 0.576; OKLCH L 82.8% C 0.136 H 106.2°. Best body text is #000000 at 12.53:1 contrast (WCAG AA passes).

Color values

HEX#D2CC5A
RGBrgb(210, 204, 90)
HSLhsl(57, 57%, 59%)
HSVhsv(57, 57%, 82%)
CMYKcmyk(0%, 2.9%, 57.1%, 17.6%)
CIE-LABlab(80.53, -12.41, 56.34)
CIE-LCHlch(80.53, 57.69, 102.42°)
OKLaboklab(82.79% -0.0379 0.1303)
OKLCHoklch(82.79% 0.136 106.2)
XYZxyz(50.0182, 57.6271, 18.1592)
Luminance0.5763 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2CC5A #5A60D2
analogous
#D2905A #D2CC5A #9CD25A
triadic
#D2CC5A #5AD2CC #CC5AD2
tetradic
#D2CC5A #5AD290 #5A60D2 #D25A9C
square
#D2CC5A #5AD290 #5A60D2 #D25A9C
split-complementary
#D2CC5A #5A9CD2 #905AD2
monochromatic
#8C8626 #BCB533 #D2CC5A #DFDB8A #ECEABA

Accessibility & contrast

On white

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

On black

12.53
#D2CC5A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2CC5A
12.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2CC5A#FFFFFF#000000##000000
##D2CC5A1.001.6812.5312.53
#FFFFFF1.681.0021.0021.00
#00000012.5321.001.001.00
##00000012.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#DCC54E
Deuteranopia (green-blind)
#DECA60
Tritanopia (blue-blind)
#E0C0B3
Achromatopsia (no color)
#C8C8C8

Design tokens & code

CSS
--color: #d2cc5a;
/* rgb */ color: rgb(210, 204, 90);
/* oklch */ color: oklch(82.8% 0.136 106.2);
Tailwind
colors: {
  custom: {
    50: '#e2db8d',
    500: '#d2cc5a',
    950: '#000000',
  },
}
SCSS
$custom: #d2cc5a;
$custom-light: #e2db8d;
$custom-dark: #000000;
JSON
{
  "hex": "#d2cc5a",
  "rgb": {
    "r": 210,
    "g": 204,
    "b": 90
  },
  "hsl": {
    "h": 57,
    "s": 57.143,
    "l": 58.824
  },
  "oklch": {
    "l": 0.82788,
    "c": 0.13568,
    "h": 106.2
  },
  "luminance": 0.57626
}

Semantic roles & 50–950 ramp

primary
#D2CC5A
secondary
#3E4392
accent
#4FE047
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#16140C
muted
#84837F

Preview Lab

Preview with #D2CC5A

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

Preview Lab → · Contrast checker → · Palette generator →

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