#D5CD42#D5CD42

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

Color values

HEX#D5CD42
RGBrgb(213, 205, 66)
HSLhsl(57, 64%, 55%)
HSVhsv(57, 69%, 84%)
CMYKcmyk(0%, 3.8%, 69%, 16.5%)
CIE-LABlab(80.85, -13.15, 66.67)
CIE-LCHlch(80.85, 67.95, 101.16°)
OKLaboklab(83.04% -0.0427 0.1486)
OKLCHoklch(83.04% 0.155 106)
XYZxyz(50.2572, 58.2039, 13.7404)
Luminance0.5820 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D5CD42 #424AD5
analogous
#D58442 #D5CD42 #93D542
triadic
#D5CD42 #42D5CD #CD42D5
tetradic
#D5CD42 #42D584 #424AD5 #D54293
square
#D5CD42 #42D584 #424AD5 #D54293
split-complementary
#D5CD42 #4293D5 #8442D5
monochromatic
#807B1C #B2AB28 #D5CD42 #E0DA74 #EBE7A6

Accessibility & contrast

On white

1.66
#D5CD42 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.64
#D5CD42 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D5CD42
12.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D5CD42#FFFFFF#000000##000000
##D5CD421.001.6612.6412.64
#FFFFFF1.661.0021.0021.00
#00000012.6421.001.001.00
##00000012.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#DEC62C
Deuteranopia (green-blind)
#E2CB4B
Tritanopia (blue-blind)
#E4C0B1
Achromatopsia (no color)
#C9C9C9

Design tokens & code

CSS
--color: #d5cd42;
/* rgb */ color: rgb(213, 205, 66);
/* oklch */ color: oklch(83.0% 0.155 106.0);
Tailwind
colors: {
  custom: {
    50: '#e5db7f',
    500: '#d5cd42',
    950: '#000000',
  },
}
SCSS
$custom: #d5cd42;
$custom-light: #e5db7f;
$custom-dark: #000000;
JSON
{
  "hex": "#d5cd42",
  "rgb": {
    "r": 213,
    "g": 205,
    "b": 66
  },
  "hsl": {
    "h": 56.735,
    "s": 63.636,
    "l": 54.706
  },
  "oklch": {
    "l": 0.83042,
    "c": 0.15459,
    "h": 106
  },
  "luminance": 0.58202
}

Semantic roles & 50–950 ramp

primary
#D5CD42
secondary
#343887
accent
#4AE741
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16150B
muted
#85847E

Preview Lab

Preview with #D5CD42

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

Preview Lab → · Contrast checker → · Palette generator →

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