#D5B840#D5B840

#D5B840 is a light, vivid yellow. Relative luminance 0.488; OKLCH L 78.7% C 0.139 H 95.2°. Best body text is #000000 at 10.76:1 contrast (WCAG AA passes).

Color values

HEX#D5B840
RGBrgb(213, 184, 64)
HSLhsl(48, 64%, 54%)
HSVhsv(48, 70%, 84%)
CMYKcmyk(0%, 13.6%, 70%, 16.5%)
CIE-LABlab(75.33, -2.49, 61.91)
CIE-LCHlch(75.33, 61.96, 92.30°)
OKLaboklab(78.65% -0.0127 0.1382)
OKLCHoklch(78.65% 0.139 95.2)
XYZxyz(45.5088, 48.7997, 11.8717)
Luminance0.4880 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D5B840 #405DD5
analogous
#D56E40 #D5B840 #A8D540
triadic
#D5B840 #40D5B8 #B840D5
tetradic
#D5B840 #40D56E #405DD5 #D540A8
square
#D5B840 #40D56E #405DD5 #D540A8
split-complementary
#D5B840 #40A8D5 #6E40D5
monochromatic
#7F6B1C #B19627 #D5B840 #E0CB72 #EBDDA4

Accessibility & contrast

On white

1.95
#D5B840 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.76
#D5B840 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D5B840
10.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D5B840#FFFFFF#000000##000000
##D5B8401.001.9510.7610.76
#FFFFFF1.951.0021.0021.00
#00000010.7621.001.001.00
##00000010.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#CBB42F
Deuteranopia (green-blind)
#D2BD47
Tritanopia (blue-blind)
#E6AAA0
Achromatopsia (no color)
#B9B9B9

Design tokens & code

CSS
--color: #d5b840;
/* rgb */ color: rgb(213, 184, 64);
/* oklch */ color: oklch(78.7% 0.139 95.2);
Tailwind
colors: {
  custom: {
    50: '#e6cc7c',
    500: '#d5b840',
    950: '#000000',
  },
}
SCSS
$custom: #d5b840;
$custom-light: #e6cc7c;
$custom-dark: #000000;
JSON
{
  "hex": "#d5b840",
  "rgb": {
    "r": 213,
    "g": 184,
    "b": 64
  },
  "hsl": {
    "h": 48.322,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.78651,
    "c": 0.13875,
    "h": 95.2
  },
  "luminance": 0.48797
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D5B840

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

Preview Lab → · Contrast checker → · Palette generator →

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