#D5CC40#D5CC40

#D5CC40 is a very light, vivid yellow. Relative luminance 0.577; OKLCH L 82.8% C 0.155 H 105.6°. Best body text is #000000 at 12.54:1 contrast (WCAG AA passes).

Color values

HEX#D5CC40
RGBrgb(213, 204, 64)
HSLhsl(56, 64%, 54%)
HSVhsv(56, 70%, 84%)
CMYKcmyk(0%, 4.2%, 70%, 16.5%)
CIE-LABlab(80.57, -12.74, 67.13)
CIE-LCHlch(80.57, 68.33, 100.75°)
OKLaboklab(82.82% -0.0418 0.1492)
OKLCHoklch(82.82% 0.155 105.6)
XYZxyz(49.9608, 57.7039, 13.3557)
Luminance0.5770 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D5CC40 #4049D5
analogous
#D58240 #D5CC40 #94D540
triadic
#D5CC40 #40D5CC #CC40D5
tetradic
#D5CC40 #40D582 #4049D5 #D54094
square
#D5CC40 #40D582 #4049D5 #D54094
split-complementary
#D5CC40 #4094D5 #8240D5
monochromatic
#7F791C #B1A927 #D5CC40 #E0D972 #EBE7A4

Accessibility & contrast

On white

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

On black

12.54
#D5CC40 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D5CC40
12.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D5CC40#FFFFFF#000000##000000
##D5CC401.001.6712.5412.54
#FFFFFF1.671.0021.0021.00
#00000012.5421.001.001.00
##00000012.5421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d5cc40;
/* rgb */ color: rgb(213, 204, 64);
/* oklch */ color: oklch(82.8% 0.155 105.6);
Tailwind
colors: {
  custom: {
    50: '#e6db7d',
    500: '#d5cc40',
    950: '#000000',
  },
}
SCSS
$custom: #d5cc40;
$custom-light: #e6db7d;
$custom-dark: #000000;
JSON
{
  "hex": "#d5cc40",
  "rgb": {
    "r": 213,
    "g": 204,
    "b": 64
  },
  "hsl": {
    "h": 56.376,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.82816,
    "c": 0.15495,
    "h": 105.6
  },
  "luminance": 0.57702
}

Semantic roles & 50–950 ramp

primary
#D5CC40
secondary
#333886
accent
#4BE741
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140A
muted
#85837D

Preview Lab

Preview with #D5CC40

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

Preview Lab → · Contrast checker → · Palette generator →

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