#D5B940#D5B940

#D5B940 is a light, vivid yellow. Relative luminance 0.492; OKLCH L 78.9% C 0.139 H 95.8°. Best body text is #000000 at 10.84:1 contrast (WCAG AA passes).

Color values

HEX#D5B940
RGBrgb(213, 185, 64)
HSLhsl(49, 64%, 54%)
HSVhsv(49, 70%, 84%)
CMYKcmyk(0%, 13.1%, 70%, 16.5%)
CIE-LABlab(75.59, -3.01, 62.17)
CIE-LCHlch(75.59, 62.25, 92.77°)
OKLaboklab(78.86% -0.0142 0.1387)
OKLCHoklch(78.86% 0.139 95.8)
XYZxyz(45.7172, 49.2166, 11.9412)
Luminance0.4921 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D5B940 #405CD5
analogous
#D56F40 #D5B940 #A6D540
triadic
#D5B940 #40D5B9 #B940D5
tetradic
#D5B940 #40D56F #405CD5 #D540A6
square
#D5B940 #40D56F #405CD5 #D540A6
split-complementary
#D5B940 #40A6D5 #6F40D5
monochromatic
#7F6C1C #B19727 #D5B940 #E0CB72 #EBDEA4

Accessibility & contrast

On white

1.94
#D5B940 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.84
#D5B940 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D5B940
10.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D5B940#FFFFFF#000000##000000
##D5B9401.001.9410.8410.84
#FFFFFF1.941.0021.0021.00
#00000010.8421.001.001.00
##00000010.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#CCB52F
Deuteranopia (green-blind)
#D3BE47
Tritanopia (blue-blind)
#E6ABA1
Achromatopsia (no color)
#BABABA

Design tokens & code

CSS
--color: #d5b940;
/* rgb */ color: rgb(213, 185, 64);
/* oklch */ color: oklch(78.9% 0.139 95.8);
Tailwind
colors: {
  custom: {
    50: '#e6cd7c',
    500: '#d5b940',
    950: '#000000',
  },
}
SCSS
$custom: #d5b940;
$custom-light: #e6cd7c;
$custom-dark: #000000;
JSON
{
  "hex": "#d5b940",
  "rgb": {
    "r": 213,
    "g": 185,
    "b": 64
  },
  "hsl": {
    "h": 48.725,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.78856,
    "c": 0.13944,
    "h": 95.8
  },
  "luminance": 0.49214
}

Semantic roles & 50–950 ramp

primary
#D5B940
secondary
#99A5D8
accent
#60E741
background
#FEFCF7
surface
#FDF8EE
border
#D5D1C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #D5B940

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

Preview Lab → · Contrast checker → · Palette generator →

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