#D4CC42#D4CC42

#D4CC42 is a very light, vivid yellow. Relative luminance 0.576; OKLCH L 82.7% C 0.154 H 106.0°. Best body text is #000000 at 12.52:1 contrast (WCAG AA passes).

Color values

HEX#D4CC42
RGBrgb(212, 204, 66)
HSLhsl(57, 63%, 55%)
HSVhsv(57, 69%, 83%)
CMYKcmyk(0%, 3.8%, 68.9%, 16.9%)
CIE-LABlab(80.50, -13.07, 66.30)
CIE-LCHlch(80.50, 67.57, 101.15°)
OKLaboklab(82.74% -0.0424 0.1478)
OKLCHoklch(82.74% 0.154 106)
XYZxyz(49.7295, 57.5779, 13.6473)
Luminance0.5758 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4CC42 #424AD4
analogous
#D48342 #D4CC42 #93D442
triadic
#D4CC42 #42D4CC #CC42D4
tetradic
#D4CC42 #42D483 #424AD4 #D44293
square
#D4CC42 #42D483 #424AD4 #D44293
split-complementary
#D4CC42 #4293D4 #8342D4
monochromatic
#7F791D #B1A928 #D4CC42 #DFD974 #EBE7A6

Accessibility & contrast

On white

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

On black

12.52
#D4CC42 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D4CC42
12.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4CC42#FFFFFF#000000##000000
##D4CC421.001.6812.5212.52
#FFFFFF1.681.0021.0021.00
#00000012.5221.001.001.00
##00000012.5221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d4cc42;
/* rgb */ color: rgb(212, 204, 66);
/* oklch */ color: oklch(82.7% 0.154 106.0);
Tailwind
colors: {
  custom: {
    50: '#e5db7f',
    500: '#d4cc42',
    950: '#000000',
  },
}
SCSS
$custom: #d4cc42;
$custom-light: #e5db7f;
$custom-dark: #000000;
JSON
{
  "hex": "#d4cc42",
  "rgb": {
    "r": 212,
    "g": 204,
    "b": 66
  },
  "hsl": {
    "h": 56.712,
    "s": 62.931,
    "l": 54.51
  },
  "oklch": {
    "l": 0.82744,
    "c": 0.15378,
    "h": 106
  },
  "luminance": 0.57576
}

Semantic roles & 50–950 ramp

primary
#D4CC42
secondary
#343986
accent
#4BE642
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140B
muted
#85837E

Preview Lab

Preview with #D4CC42

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

Preview Lab → · Contrast checker → · Palette generator →

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