#D5B540#D5B540

#D5B540 is a light, vivid yellow. Relative luminance 0.476; OKLCH L 78.0% C 0.137 H 93.4°. Best body text is #000000 at 10.51:1 contrast (WCAG AA passes).

Color values

HEX#D5B540
RGBrgb(213, 181, 64)
HSLhsl(47, 64%, 54%)
HSVhsv(47, 70%, 84%)
CMYKcmyk(0%, 15%, 70%, 16.5%)
CIE-LABlab(74.55, -0.92, 61.13)
CIE-LCHlch(74.55, 61.14, 90.86°)
OKLaboklab(78.04% -0.0082 0.1365)
OKLCHoklch(78.04% 0.137 93.4)
XYZxyz(44.8922, 47.5666, 11.6662)
Luminance0.4756 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D5B540 #4060D5
analogous
#D56B40 #D5B540 #ABD540
triadic
#D5B540 #40D5B5 #B540D5
tetradic
#D5B540 #40D56B #4060D5 #D540AB
square
#D5B540 #40D56B #4060D5 #D540AB
split-complementary
#D5B540 #40ABD5 #6B40D5
monochromatic
#7F6A1C #B19327 #D5B540 #E0C872 #EBDCA4

Accessibility & contrast

On white

2.00
#D5B540 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.51
#D5B540 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D5B540
10.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D5B540#FFFFFF#000000##000000
##D5B5401.002.0010.5110.51
#FFFFFF2.001.0021.0021.00
#00000010.5121.001.001.00
##00000010.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#C8B230
Deuteranopia (green-blind)
#D0BB46
Tritanopia (blue-blind)
#E6A79D
Achromatopsia (no color)
#B7B7B7

Design tokens & code

CSS
--color: #d5b540;
/* rgb */ color: rgb(213, 181, 64);
/* oklch */ color: oklch(78.0% 0.137 93.4);
Tailwind
colors: {
  custom: {
    50: '#e6ca7b',
    500: '#d5b540',
    950: '#000000',
  },
}
SCSS
$custom: #d5b540;
$custom-light: #e6ca7b;
$custom-dark: #000000;
JSON
{
  "hex": "#d5b540",
  "rgb": {
    "r": 213,
    "g": 181,
    "b": 64
  },
  "hsl": {
    "h": 47.114,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.78038,
    "c": 0.13676,
    "h": 93.4
  },
  "luminance": 0.47564
}

Semantic roles & 50–950 ramp

primary
#D5B540
secondary
#99A6D8
accent
#65E741
background
#FEFCF7
surface
#FDF8EE
border
#D5D1C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #D5B540

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

Preview Lab → · Contrast checker → · Palette generator →

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