#D4CC40#D4CC40

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

Color values

HEX#D4CC40
RGBrgb(212, 204, 64)
HSLhsl(57, 63%, 54%)
HSVhsv(57, 70%, 83%)
CMYKcmyk(0%, 3.8%, 69.8%, 16.9%)
CIE-LABlab(80.49, -13.17, 67.02)
CIE-LCHlch(80.49, 68.31, 101.11°)
OKLaboklab(82.73% -0.0429 0.149)
OKLCHoklch(82.73% 0.155 106.1)
XYZxyz(49.6716, 57.5547, 13.3422)
Luminance0.5755 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4CC40 #4048D4
analogous
#D48240 #D4CC40 #92D440
triadic
#D4CC40 #40D4CC #CC40D4
tetradic
#D4CC40 #40D482 #4048D4 #D44092
square
#D4CC40 #40D482 #4048D4 #D44092
split-complementary
#D4CC40 #4092D4 #8240D4
monochromatic
#7D781C #AFA827 #D4CC40 #DFD972 #EAE7A4

Accessibility & contrast

On white

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

On black

12.51
#D4CC40 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D4CC40
12.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4CC40#FFFFFF#000000##000000
##D4CC401.001.6812.5112.51
#FFFFFF1.681.0021.0021.00
#00000012.5121.001.001.00
##00000012.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#DDC529
Deuteranopia (green-blind)
#E1CA4A
Tritanopia (blue-blind)
#E3BFB0
Achromatopsia (no color)
#C8C8C8

Design tokens & code

CSS
--color: #d4cc40;
/* rgb */ color: rgb(212, 204, 64);
/* oklch */ color: oklch(82.7% 0.155 106.1);
Tailwind
colors: {
  custom: {
    50: '#e5db7d',
    500: '#d4cc40',
    950: '#000000',
  },
}
SCSS
$custom: #d4cc40;
$custom-light: #e5db7d;
$custom-dark: #000000;
JSON
{
  "hex": "#d4cc40",
  "rgb": {
    "r": 212,
    "g": 204,
    "b": 64
  },
  "hsl": {
    "h": 56.757,
    "s": 63.248,
    "l": 54.118
  },
  "oklch": {
    "l": 0.8273,
    "c": 0.15507,
    "h": 106.1
  },
  "luminance": 0.57553
}

Semantic roles & 50–950 ramp

primary
#D4CC40
secondary
#333885
accent
#4AE642
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140A
muted
#85837D

Preview Lab

Preview with #D4CC40

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

Preview Lab → · Contrast checker → · Palette generator →

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