#D5CD3A#D5CD3A

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

Color values

HEX#D5CD3A
RGBrgb(213, 205, 58)
HSLhsl(57, 65%, 53%)
HSVhsv(57, 73%, 84%)
CMYKcmyk(0%, 3.8%, 72.8%, 16.5%)
CIE-LABlab(80.80, -13.53, 69.48)
CIE-LCHlch(80.80, 70.79, 101.02°)
OKLaboklab(82.99% -0.0446 0.1531)
OKLCHoklch(82.99% 0.159 106.2)
XYZxyz(50.0376, 58.1161, 12.5839)
Luminance0.5811 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D5CD3A #3A42D5
analogous
#D57F3A #D5CD3A #90D53A
triadic
#D5CD3A #3AD5CD #CD3AD5
tetradic
#D5CD3A #3AD57F #3A42D5 #D53A90
square
#D5CD3A #3AD57F #3A42D5 #D53A90
split-complementary
#D5CD3A #3A90D5 #7F3AD5
monochromatic
#7A761A #ADA625 #D5CD3A #E0DA6C #EBE79F

Accessibility & contrast

On white

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

On black

12.62
#D5CD3A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D5CD3A
12.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D5CD3A#FFFFFF#000000##000000
##D5CD3A1.001.6612.6212.62
#FFFFFF1.661.0021.0021.00
#00000012.6221.001.001.00
##00000012.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#DFC51D
Deuteranopia (green-blind)
#E2CB45
Tritanopia (blue-blind)
#E5BFB1
Achromatopsia (no color)
#C9C9C9

Design tokens & code

CSS
--color: #d5cd3a;
/* rgb */ color: rgb(213, 205, 58);
/* oklch */ color: oklch(83.0% 0.159 106.2);
Tailwind
colors: {
  custom: {
    50: '#e6db7b',
    500: '#d5cd3a',
    950: '#000000',
  },
}
SCSS
$custom: #d5cd3a;
$custom-light: #e6db7b;
$custom-dark: #000000;
JSON
{
  "hex": "#d5cd3a",
  "rgb": {
    "r": 213,
    "g": 205,
    "b": 58
  },
  "hsl": {
    "h": 56.903,
    "s": 64.854,
    "l": 53.137
  },
  "oklch": {
    "l": 0.82987,
    "c": 0.15946,
    "h": 106.2
  },
  "luminance": 0.58114
}

Semantic roles & 50–950 ramp

primary
#D5CD3A
secondary
#313582
accent
#49E840
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16150A
muted
#85847D

Preview Lab

Preview with #D5CD3A

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

Preview Lab → · Contrast checker → · Palette generator →

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