#D2CC4F#D2CC4F

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

Color values

HEX#D2CC4F
RGBrgb(210, 204, 79)
HSLhsl(57, 59%, 57%)
HSVhsv(57, 62%, 82%)
CMYKcmyk(0%, 2.9%, 62.4%, 17.6%)
CIE-LABlab(80.43, -13.16, 61.00)
CIE-LCHlch(80.43, 62.41, 102.17°)
OKLaboklab(82.68% -0.0412 0.1387)
OKLCHoklch(82.68% 0.145 106.5)
XYZxyz(49.5842, 57.4535, 15.8734)
Luminance0.5745 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2CC4F #4F55D2
analogous
#D28B4F #D2CC4F #97D24F
triadic
#D2CC4F #4FD2CC #CC4FD2
tetradic
#D2CC4F #4FD28B #4F55D2 #D24F97
square
#D2CC4F #4FD28B #4F55D2 #D24F97
split-complementary
#D2CC4F #4F97D2 #8B4FD2
monochromatic
#858022 #B5AF2E #D2CC4F #DEDA80 #EBE8B0

Accessibility & contrast

On white

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

On black

12.49
#D2CC4F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2CC4F
12.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2CC4F#FFFFFF#000000##000000
##D2CC4F1.001.6812.4912.49
#FFFFFF1.681.0021.0021.00
#00000012.4921.001.001.00
##00000012.4921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d2cc4f;
/* rgb */ color: rgb(210, 204, 79);
/* oklch */ color: oklch(82.7% 0.145 106.5);
Tailwind
colors: {
  custom: {
    50: '#e3db86',
    500: '#d2cc4f',
    950: '#000000',
  },
}
SCSS
$custom: #d2cc4f;
$custom-light: #e3db86;
$custom-dark: #000000;
JSON
{
  "hex": "#d2cc4f",
  "rgb": {
    "r": 210,
    "g": 204,
    "b": 79
  },
  "hsl": {
    "h": 57.252,
    "s": 59.276,
    "l": 56.667
  },
  "oklch": {
    "l": 0.82679,
    "c": 0.14473,
    "h": 106.5
  },
  "luminance": 0.57452
}

Semantic roles & 50–950 ramp

primary
#D2CC4F
secondary
#3A3D8C
accent
#4DE245
background
#FEFEFB
surface
#FDFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #D2CC4F

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

Preview Lab → · Contrast checker → · Palette generator →

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