#D2CC4C#D2CC4C

#D2CC4C is a very light, vivid yellow. Relative luminance 0.574; OKLCH L 82.7% C 0.147 H 106.6°. Best body text is #000000 at 12.48:1 contrast (WCAG AA passes).

Color values

HEX#D2CC4C
RGBrgb(210, 204, 76)
HSLhsl(57, 60%, 56%)
HSVhsv(57, 64%, 82%)
CMYKcmyk(0%, 2.9%, 63.8%, 17.6%)
CIE-LABlab(80.41, -13.34, 62.22)
CIE-LCHlch(80.41, 63.64, 102.10°)
OKLaboklab(82.65% -0.0421 0.1409)
OKLCHoklch(82.65% 0.147 106.6)
XYZxyz(49.4775, 57.4108, 15.3112)
Luminance0.5741 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2CC4C #4C52D2
analogous
#D2894C #D2CC4C #95D24C
triadic
#D2CC4C #4CD2CC #CC4CD2
tetradic
#D2CC4C #4CD289 #4C52D2 #D24C95
square
#D2CC4C #4CD289 #4C52D2 #D24C95
split-complementary
#D2CC4C #4C95D2 #894CD2
monochromatic
#837E21 #B4AE2D #D2CC4C #DEDA7D #EBE8AE

Accessibility & contrast

On white

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

On black

12.48
#D2CC4C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2CC4C
12.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2CC4C#FFFFFF#000000##000000
##D2CC4C1.001.6812.4812.48
#FFFFFF1.681.0021.0021.00
#00000012.4821.001.001.00
##00000012.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#DCC53C
Deuteranopia (green-blind)
#DFCA54
Tritanopia (blue-blind)
#E1BFB2
Achromatopsia (no color)
#C7C7C7

Design tokens & code

CSS
--color: #d2cc4c;
/* rgb */ color: rgb(210, 204, 76);
/* oklch */ color: oklch(82.7% 0.147 106.6);
Tailwind
colors: {
  custom: {
    50: '#e3db84',
    500: '#d2cc4c',
    950: '#000000',
  },
}
SCSS
$custom: #d2cc4c;
$custom-light: #e3db84;
$custom-dark: #000000;
JSON
{
  "hex": "#d2cc4c",
  "rgb": {
    "r": 210,
    "g": 204,
    "b": 76
  },
  "hsl": {
    "h": 57.313,
    "s": 59.821,
    "l": 56.078
  },
  "oklch": {
    "l": 0.82653,
    "c": 0.14702,
    "h": 106.6
  },
  "luminance": 0.57409
}

Semantic roles & 50–950 ramp

primary
#D2CC4C
secondary
#383C8A
accent
#4CE345
background
#FEFEFB
surface
#FDFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #D2CC4C

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

Preview Lab → · Contrast checker → · Palette generator →

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