#D5BC40#D5BC40

#D5BC40 is a light, vivid yellow. Relative luminance 0.505; OKLCH L 79.5% C 0.142 H 97.6°. Best body text is #000000 at 11.10:1 contrast (WCAG AA passes).

Color values

HEX#D5BC40
RGBrgb(213, 188, 64)
HSLhsl(50, 64%, 54%)
HSVhsv(50, 70%, 84%)
CMYKcmyk(0%, 11.7%, 70%, 16.5%)
CIE-LABlab(76.37, -4.57, 62.96)
CIE-LCHlch(76.37, 63.12, 94.15°)
OKLaboklab(79.47% -0.0186 0.1404)
OKLCHoklch(79.47% 0.142 97.6)
XYZxyz(46.3514, 50.4851, 12.1526)
Luminance0.5048 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D5BC40 #4059D5
analogous
#D57240 #D5BC40 #A4D540
triadic
#D5BC40 #40D5BC #BC40D5
tetradic
#D5BC40 #40D572 #4059D5 #D540A4
square
#D5BC40 #40D572 #4059D5 #D540A4
split-complementary
#D5BC40 #40A4D5 #7240D5
monochromatic
#7F6E1C #B19A27 #D5BC40 #E0CE72 #EBDFA4

Accessibility & contrast

On white

1.89
#D5BC40 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.10
#D5BC40 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D5BC40
11.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D5BC40#FFFFFF#000000##000000
##D5BC401.001.8911.1011.10
#FFFFFF1.891.0021.0021.00
#00000011.1021.001.001.00
##00000011.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#CEB82E
Deuteranopia (green-blind)
#D5C047
Tritanopia (blue-blind)
#E6AEA3
Achromatopsia (no color)
#BCBCBC

Design tokens & code

CSS
--color: #d5bc40;
/* rgb */ color: rgb(213, 188, 64);
/* oklch */ color: oklch(79.5% 0.142 97.6);
Tailwind
colors: {
  custom: {
    50: '#e6cf7c',
    500: '#d5bc40',
    950: '#000000',
  },
}
SCSS
$custom: #d5bc40;
$custom-light: #e6cf7c;
$custom-dark: #000000;
JSON
{
  "hex": "#d5bc40",
  "rgb": {
    "r": 213,
    "g": 188,
    "b": 64
  },
  "hsl": {
    "h": 49.933,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.79474,
    "c": 0.14161,
    "h": 97.6
  },
  "luminance": 0.50483
}

Semantic roles & 50–950 ramp

primary
#D5BC40
secondary
#334186
accent
#5DE741
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16130A
muted
#85837D

Preview Lab

Preview with #D5BC40

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

Preview Lab → · Contrast checker → · Palette generator →

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