#D5CD40#D5CD40

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

Color values

HEX#D5CD40
RGBrgb(213, 205, 64)
HSLhsl(57, 64%, 54%)
HSVhsv(57, 70%, 84%)
CMYKcmyk(0%, 3.8%, 70%, 16.5%)
CIE-LABlab(80.84, -13.25, 67.39)
CIE-LCHlch(80.84, 68.68, 101.12°)
OKLaboklab(83.03% -0.0432 0.1498)
OKLCHoklch(83.03% 0.156 106.1)
XYZxyz(50.1993, 58.1807, 13.4352)
Luminance0.5818 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D5CD40 #4048D5
analogous
#D58340 #D5CD40 #92D540
triadic
#D5CD40 #40D5CD #CD40D5
tetradic
#D5CD40 #40D583 #4048D5 #D54092
square
#D5CD40 #40D583 #4048D5 #D54092
split-complementary
#D5CD40 #4092D5 #8340D5
monochromatic
#7F791C #B1A927 #D5CD40 #E0DA72 #EBE7A4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D5CD40#FFFFFF#000000##000000
##D5CD401.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)
#DEC529
Deuteranopia (green-blind)
#E2CB4A
Tritanopia (blue-blind)
#E4BFB1
Achromatopsia (no color)
#C9C9C9

Design tokens & code

CSS
--color: #d5cd40;
/* rgb */ color: rgb(213, 205, 64);
/* oklch */ color: oklch(83.0% 0.156 106.1);
Tailwind
colors: {
  custom: {
    50: '#e6db7e',
    500: '#d5cd40',
    950: '#000000',
  },
}
SCSS
$custom: #d5cd40;
$custom-light: #e6db7e;
$custom-dark: #000000;
JSON
{
  "hex": "#d5cd40",
  "rgb": {
    "r": 213,
    "g": 205,
    "b": 64
  },
  "hsl": {
    "h": 56.779,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.83027,
    "c": 0.15587,
    "h": 106.1
  },
  "luminance": 0.58179
}

Semantic roles & 50–950 ramp

primary
#D5CD40
secondary
#333886
accent
#4AE741
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16150A
muted
#85847D

Preview Lab

Preview with #D5CD40

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

Preview Lab → · Contrast checker → · Palette generator →

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