#D4CD42#D4CD42

#D4CD42 is a very light, vivid yellow. Relative luminance 0.581; OKLCH L 83.0% C 0.155 H 106.5°. Best body text is #000000 at 12.61:1 contrast (WCAG AA passes).

Color values

HEX#D4CD42
RGBrgb(212, 205, 66)
HSLhsl(57, 63%, 55%)
HSVhsv(57, 69%, 83%)
CMYKcmyk(0%, 3.3%, 68.9%, 16.9%)
CIE-LABlab(80.77, -13.57, 66.56)
CIE-LCHlch(80.77, 67.93, 101.52°)
OKLaboklab(82.96% -0.0438 0.1484)
OKLCHoklch(82.96% 0.155 106.5)
XYZxyz(49.9680, 58.0548, 13.7268)
Luminance0.5805 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4CD42 #4249D4
analogous
#D48442 #D4CD42 #92D442
triadic
#D4CD42 #42D4CD #CD42D4
tetradic
#D4CD42 #42D484 #4249D4 #D44292
square
#D4CD42 #42D484 #4249D4 #D44292
split-complementary
#D4CD42 #4292D4 #8442D4
monochromatic
#7F7A1D #B1AA28 #D4CD42 #DFDA74 #EBE7A6

Accessibility & contrast

On white

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

On black

12.61
#D4CD42 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D4CD42
12.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4CD42#FFFFFF#000000##000000
##D4CD421.001.6712.6112.61
#FFFFFF1.671.0021.0021.00
#00000012.6121.001.001.00
##00000012.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#DEC52C
Deuteranopia (green-blind)
#E1CB4B
Tritanopia (blue-blind)
#E3C0B1
Achromatopsia (no color)
#C8C8C8

Design tokens & code

CSS
--color: #d4cd42;
/* rgb */ color: rgb(212, 205, 66);
/* oklch */ color: oklch(83.0% 0.155 106.5);
Tailwind
colors: {
  custom: {
    50: '#e5dc7f',
    500: '#d4cd42',
    950: '#000000',
  },
}
SCSS
$custom: #d4cd42;
$custom-light: #e5dc7f;
$custom-dark: #000000;
JSON
{
  "hex": "#d4cd42",
  "rgb": {
    "r": 212,
    "g": 205,
    "b": 66
  },
  "hsl": {
    "h": 57.123,
    "s": 62.931,
    "l": 54.51
  },
  "oklch": {
    "l": 0.82956,
    "c": 0.15471,
    "h": 106.5
  },
  "luminance": 0.58053
}

Semantic roles & 50–950 ramp

primary
#D4CD42
secondary
#343886
accent
#4AE642
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16150B
muted
#85847E

Preview Lab

Preview with #D4CD42

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

Preview Lab → · Contrast checker → · Palette generator →

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