#D5B040#D5B040

#D5B040 is a light, vivid yellow. Relative luminance 0.456; OKLCH L 77.0% C 0.134 H 90.3°. Best body text is #000000 at 10.11:1 contrast (WCAG AA passes).

Color values

HEX#D5B040
RGBrgb(213, 176, 64)
HSLhsl(45, 64%, 54%)
HSVhsv(45, 70%, 84%)
CMYKcmyk(0%, 17.4%, 70%, 16.5%)
CIE-LABlab(73.27, 1.71, 59.83)
CIE-LCHlch(73.27, 59.85, 88.36°)
OKLaboklab(77.02% -0.0006 0.1338)
OKLCHoklch(77.02% 0.134 90.3)
XYZxyz(43.8937, 45.5696, 11.3334)
Luminance0.4557 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D5B040 #4065D5
analogous
#D56640 #D5B040 #AFD540
triadic
#D5B040 #40D5B0 #B040D5
tetradic
#D5B040 #40D566 #4065D5 #D540AF
square
#D5B040 #40D566 #4065D5 #D540AF
split-complementary
#D5B040 #40AFD5 #6640D5
monochromatic
#7F661C #B18F27 #D5B040 #E0C572 #EBDAA4

Accessibility & contrast

On white

2.08
#D5B040 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.11
#D5B040 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D5B040
10.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D5B040#FFFFFF#000000##000000
##D5B0401.002.0810.1110.11
#FFFFFF2.081.0021.0021.00
#00000010.1121.001.001.00
##00000010.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#C3AE31
Deuteranopia (green-blind)
#CCB846
Tritanopia (blue-blind)
#E6A299
Achromatopsia (no color)
#B4B4B4

Design tokens & code

CSS
--color: #d5b040;
/* rgb */ color: rgb(213, 176, 64);
/* oklch */ color: oklch(77.0% 0.134 90.3);
Tailwind
colors: {
  custom: {
    50: '#e6c77b',
    500: '#d5b040',
    950: '#000000',
  },
}
SCSS
$custom: #d5b040;
$custom-light: #e6c77b;
$custom-dark: #000000;
JSON
{
  "hex": "#d5b040",
  "rgb": {
    "r": 213,
    "g": 176,
    "b": 64
  },
  "hsl": {
    "h": 45.101,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.77023,
    "c": 0.13375,
    "h": 90.3
  },
  "luminance": 0.45567
}

Semantic roles & 50–950 ramp

primary
#D5B040
secondary
#99A8D8
accent
#6AE741
background
#FEFCF7
surface
#FDF8EE
border
#D5D1C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #D5B040

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

Preview Lab → · Contrast checker → · Palette generator →

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