#D4CC4A#D4CC4A

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

Color values

HEX#D4CC4A
RGBrgb(212, 204, 74)
HSLhsl(57, 62%, 56%)
HSVhsv(57, 65%, 83%)
CMYKcmyk(0%, 3.8%, 65.1%, 16.9%)
CIE-LABlab(80.56, -12.63, 63.24)
CIE-LCHlch(80.56, 64.49, 101.29°)
OKLaboklab(82.81% -0.0404 0.1427)
OKLCHoklch(82.81% 0.148 105.8)
XYZxyz(49.9821, 57.6789, 14.9775)
Luminance0.5768 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4CC4A #4A52D4
analogous
#D4874A #D4CC4A #97D44A
triadic
#D4CC4A #4AD4CC #CC4AD4
tetradic
#D4CC4A #4AD487 #4A52D4 #D44A97
square
#D4CC4A #4AD487 #4A52D4 #D44A97
split-complementary
#D4CC4A #4A97D4 #874AD4
monochromatic
#847E1F #B6AE2B #D4CC4A #E0DA7B #EBE8AD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D4CC4A#FFFFFF#000000##000000
##D4CC4A1.001.6812.5412.54
#FFFFFF1.681.0021.0021.00
#00000012.5421.001.001.00
##00000012.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#DDC539
Deuteranopia (green-blind)
#E0CA52
Tritanopia (blue-blind)
#E3BFB1
Achromatopsia (no color)
#C8C8C8

Design tokens & code

CSS
--color: #d4cc4a;
/* rgb */ color: rgb(212, 204, 74);
/* oklch */ color: oklch(82.8% 0.148 105.8);
Tailwind
colors: {
  custom: {
    50: '#e4db83',
    500: '#d4cc4a',
    950: '#000000',
  },
}
SCSS
$custom: #d4cc4a;
$custom-light: #e4db83;
$custom-dark: #000000;
JSON
{
  "hex": "#d4cc4a",
  "rgb": {
    "r": 212,
    "g": 204,
    "b": 74
  },
  "hsl": {
    "h": 56.522,
    "s": 61.607,
    "l": 56.078
  },
  "oklch": {
    "l": 0.82807,
    "c": 0.14826,
    "h": 105.8
  },
  "luminance": 0.57677
}

Semantic roles & 50–950 ramp

primary
#D4CC4A
secondary
#373C8B
accent
#4CE543
background
#FEFEFB
surface
#FDFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #D4CC4A

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

Preview Lab → · Contrast checker → · Palette generator →

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