#D4CC4F#D4CC4F

#D4CC4F is a very light, vivid yellow. Relative luminance 0.577; OKLCH L 82.9% C 0.145 H 105.6°. Best body text is #000000 at 12.55:1 contrast (WCAG AA passes).

Color values

HEX#D4CC4F
RGBrgb(212, 204, 79)
HSLhsl(56, 61%, 57%)
HSVhsv(56, 63%, 83%)
CMYKcmyk(0%, 3.8%, 62.7%, 16.9%)
CIE-LABlab(80.60, -12.32, 61.23)
CIE-LCHlch(80.60, 62.46, 101.38°)
OKLaboklab(82.85% -0.039 0.1392)
OKLCHoklch(82.85% 0.145 105.6)
XYZxyz(50.1573, 57.7490, 15.9002)
Luminance0.5775 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4CC4F #4F57D4
analogous
#D48A4F #D4CC4F #9AD44F
triadic
#D4CC4F #4FD4CC #CC4FD4
tetradic
#D4CC4F #4FD48A #4F57D4 #D44F9A
square
#D4CC4F #4FD48A #4F57D4 #D44F9A
split-complementary
#D4CC4F #4F9AD4 #8A4FD4
monochromatic
#878121 #B9B02D #D4CC4F #E0DA80 #ECE9B1

Accessibility & contrast

On white

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

On black

12.55
#D4CC4F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D4CC4F
12.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4CC4F#FFFFFF#000000##000000
##D4CC4F1.001.6712.5512.55
#FFFFFF1.671.0021.0021.00
#00000012.5521.001.001.00
##00000012.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#DDC540
Deuteranopia (green-blind)
#E0CB56
Tritanopia (blue-blind)
#E3BFB2
Achromatopsia (no color)
#C8C8C8

Design tokens & code

CSS
--color: #d4cc4f;
/* rgb */ color: rgb(212, 204, 79);
/* oklch */ color: oklch(82.9% 0.145 105.6);
Tailwind
colors: {
  custom: {
    50: '#e4db86',
    500: '#d4cc4f',
    950: '#000000',
  },
}
SCSS
$custom: #d4cc4f;
$custom-light: #e4db86;
$custom-dark: #000000;
JSON
{
  "hex": "#d4cc4f",
  "rgb": {
    "r": 212,
    "g": 204,
    "b": 79
  },
  "hsl": {
    "h": 56.391,
    "s": 60.731,
    "l": 57.059
  },
  "oklch": {
    "l": 0.82851,
    "c": 0.14453,
    "h": 105.6
  },
  "luminance": 0.57747
}

Semantic roles & 50–950 ramp

primary
#D4CC4F
secondary
#393E8E
accent
#4EE444
background
#FEFEFB
surface
#FDFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #D4CC4F

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

Preview Lab → · Contrast checker → · Palette generator →

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