#D2CC5F#D2CC5F

#D2CC5F is a very light, vivid yellow. Relative luminance 0.577; OKLCH L 82.8% C 0.131 H 106.0°. Best body text is #000000 at 12.54:1 contrast (WCAG AA passes).

Color values

HEX#D2CC5F
RGBrgb(210, 204, 95)
HSLhsl(57, 56%, 60%)
HSVhsv(57, 55%, 82%)
CMYKcmyk(0%, 2.9%, 54.8%, 17.6%)
CIE-LABlab(80.58, -12.03, 54.14)
CIE-LCHlch(80.58, 55.46, 102.53°)
OKLaboklab(82.84% -0.0363 0.1261)
OKLCHoklch(82.84% 0.131 106)
XYZxyz(50.2382, 57.7151, 19.3180)
Luminance0.5771 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2CC5F #5F65D2
analogous
#D2935F #D2CC5F #9ED25F
triadic
#D2CC5F #5FD2CC #CC5FD2
tetradic
#D2CC5F #5FD293 #5F65D2 #D25F9E
square
#D2CC5F #5FD293 #5F65D2 #D25F9E
split-complementary
#D2CC5F #5F9ED2 #935FD2
monochromatic
#8F8928 #BEB736 #D2CC5F #DFDB8F #EDEABF

Accessibility & contrast

On white

1.67
#D2CC5F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.54
#D2CC5F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2CC5F
12.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2CC5F#FFFFFF#000000##000000
##D2CC5F1.001.6712.5412.54
#FFFFFF1.671.0021.0021.00
#00000012.5421.001.001.00
##00000012.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#DBC554
Deuteranopia (green-blind)
#DECA65
Tritanopia (blue-blind)
#E0C0B4
Achromatopsia (no color)
#C8C8C8

Design tokens & code

CSS
--color: #d2cc5f;
/* rgb */ color: rgb(210, 204, 95);
/* oklch */ color: oklch(82.8% 0.131 106.0);
Tailwind
colors: {
  custom: {
    50: '#e2db90',
    500: '#d2cc5f',
    950: '#000000',
  },
}
SCSS
$custom: #d2cc5f;
$custom-light: #e2db90;
$custom-dark: #000000;
JSON
{
  "hex": "#d2cc5f",
  "rgb": {
    "r": 210,
    "g": 204,
    "b": 95
  },
  "hsl": {
    "h": 56.87,
    "s": 56.098,
    "l": 59.804
  },
  "oklch": {
    "l": 0.82843,
    "c": 0.13124,
    "h": 106
  },
  "luminance": 0.57714
}

Semantic roles & 50–950 ramp

primary
#D2CC5F
secondary
#414594
accent
#50DF48
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#16140D
muted
#84837F

Preview Lab

Preview with #D2CC5F

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

Preview Lab → · Contrast checker → · Palette generator →

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