#D5BA40#D5BA40

#D5BA40 is a light, vivid yellow. Relative luminance 0.496; OKLCH L 79.1% C 0.140 H 96.4°. Best body text is #000000 at 10.93:1 contrast (WCAG AA passes).

Color values

HEX#D5BA40
RGBrgb(213, 186, 64)
HSLhsl(49, 64%, 54%)
HSVhsv(49, 70%, 84%)
CMYKcmyk(0%, 12.7%, 70%, 16.5%)
CIE-LABlab(75.85, -3.53, 62.44)
CIE-LCHlch(75.85, 62.53, 93.24°)
OKLaboklab(79.06% -0.0157 0.1393)
OKLCHoklch(79.06% 0.14 96.4)
XYZxyz(45.9272, 49.6365, 12.0112)
Luminance0.4963 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D5BA40 #405BD5
analogous
#D57040 #D5BA40 #A5D540
triadic
#D5BA40 #40D5BA #BA40D5
tetradic
#D5BA40 #40D570 #405BD5 #D540A5
square
#D5BA40 #40D570 #405BD5 #D540A5
split-complementary
#D5BA40 #40A5D5 #7040D5
monochromatic
#7F6D1C #B19827 #D5BA40 #E0CC72 #EBDEA4

Accessibility & contrast

On white

1.92
#D5BA40 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.93
#D5BA40 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D5BA40
10.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D5BA40#FFFFFF#000000##000000
##D5BA401.001.9210.9310.93
#FFFFFF1.921.0021.0021.00
#00000010.9321.001.001.00
##00000010.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#CDB62E
Deuteranopia (green-blind)
#D4BF47
Tritanopia (blue-blind)
#E6ACA1
Achromatopsia (no color)
#BBBBBB

Design tokens & code

CSS
--color: #d5ba40;
/* rgb */ color: rgb(213, 186, 64);
/* oklch */ color: oklch(79.1% 0.140 96.4);
Tailwind
colors: {
  custom: {
    50: '#e6ce7c',
    500: '#d5ba40',
    950: '#000000',
  },
}
SCSS
$custom: #d5ba40;
$custom-light: #e6ce7c;
$custom-dark: #000000;
JSON
{
  "hex": "#d5ba40",
  "rgb": {
    "r": 213,
    "g": 186,
    "b": 64
  },
  "hsl": {
    "h": 49.128,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.79062,
    "c": 0.14016,
    "h": 96.4
  },
  "luminance": 0.49634
}

Semantic roles & 50–950 ramp

primary
#D5BA40
secondary
#99A4D8
accent
#5FE741
background
#FEFCF7
surface
#FDF9EE
border
#D5D2C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #D5BA40

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

Preview Lab → · Contrast checker → · Palette generator →

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