#D5BA51#D5BA51

#D5BA51 is a light, vivid yellow. Relative luminance 0.499; OKLCH L 79.2% C 0.128 H 94.9°. Best body text is #000000 at 10.97:1 contrast (WCAG AA passes).

Color values

HEX#D5BA51
RGBrgb(213, 186, 81)
HSLhsl(48, 61%, 58%)
HSVhsv(48, 62%, 84%)
CMYKcmyk(0%, 12.7%, 62%, 16.5%)
CIE-LABlab(75.98, -2.54, 55.39)
CIE-LCHlch(75.98, 55.45, 92.62°)
OKLaboklab(79.22% -0.0108 0.127)
OKLCHoklch(79.22% 0.128 94.9)
XYZxyz(46.4867, 49.8603, 14.9584)
Luminance0.4986 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D5BA51 #516CD5
analogous
#D57851 #D5BA51 #AED551
triadic
#D5BA51 #51D5BA #BA51D5
tetradic
#D5BA51 #51D578 #516CD5 #D551AE
square
#D5BA51 #51D578 #516CD5 #D551AE
split-complementary
#D5BA51 #51AED5 #7851D5
monochromatic
#8A7521 #BC9E2D #D5BA51 #E1CE82 #EDE1B4

Accessibility & contrast

On white

1.91
#D5BA51 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.97
#D5BA51 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D5BA51
10.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D5BA51#FFFFFF#000000##000000
##D5BA511.001.9110.9710.97
#FFFFFF1.911.0021.0021.00
#00000010.9721.001.001.00
##00000010.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#CCB645
Deuteranopia (green-blind)
#D3BF56
Tritanopia (blue-blind)
#E5ADA3
Achromatopsia (no color)
#BBBBBB

Design tokens & code

CSS
--color: #d5ba51;
/* rgb */ color: rgb(213, 186, 81);
/* oklch */ color: oklch(79.2% 0.128 94.9);
Tailwind
colors: {
  custom: {
    50: '#e5ce86',
    500: '#d5ba51',
    950: '#000000',
  },
}
SCSS
$custom: #d5ba51;
$custom-light: #e5ce86;
$custom-dark: #000000;
JSON
{
  "hex": "#d5ba51",
  "rgb": {
    "r": 213,
    "g": 186,
    "b": 81
  },
  "hsl": {
    "h": 47.727,
    "s": 61.111,
    "l": 57.647
  },
  "oklch": {
    "l": 0.79215,
    "c": 0.1275,
    "h": 94.9
  },
  "luminance": 0.49858
}

Semantic roles & 50–950 ramp

primary
#D5BA51
secondary
#A6B1DB
accent
#64E444
background
#FEFCF8
surface
#FDF9F0
border
#D5D2CB
text
#16130B
muted
#84827C

Preview Lab

Preview with #D5BA51

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

Preview Lab → · Contrast checker → · Palette generator →

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