#D5BA52#D5BA52

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

Color values

HEX#D5BA52
RGBrgb(213, 186, 82)
HSLhsl(48, 61%, 58%)
HSVhsv(48, 62%, 84%)
CMYKcmyk(0%, 12.7%, 61.5%, 16.5%)
CIE-LABlab(75.99, -2.47, 54.95)
CIE-LCHlch(75.99, 55.01, 92.57°)
OKLaboklab(79.22% -0.0105 0.1262)
OKLCHoklch(79.22% 0.127 94.8)
XYZxyz(46.5245, 49.8754, 15.1573)
Luminance0.4987 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D5BA52 #526DD5
analogous
#D57952 #D5BA52 #AED552
triadic
#D5BA52 #52D5BA #BA52D5
tetradic
#D5BA52 #52D579 #526DD5 #D552AE
square
#D5BA52 #52D579 #526DD5 #D552AE
split-complementary
#D5BA52 #52AED5 #7952D5
monochromatic
#8B7522 #BC9F2E #D5BA52 #E1CE83 #EDE1B4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D5BA52#FFFFFF#000000##000000
##D5BA521.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)
#CCB647
Deuteranopia (green-blind)
#D2BF57
Tritanopia (blue-blind)
#E5ADA3
Achromatopsia (no color)
#BBBBBB

Design tokens & code

CSS
--color: #d5ba52;
/* rgb */ color: rgb(213, 186, 82);
/* oklch */ color: oklch(79.2% 0.127 94.8);
Tailwind
colors: {
  custom: {
    50: '#e5ce86',
    500: '#d5ba52',
    950: '#000000',
  },
}
SCSS
$custom: #d5ba52;
$custom-light: #e5ce86;
$custom-dark: #000000;
JSON
{
  "hex": "#d5ba52",
  "rgb": {
    "r": 213,
    "g": 186,
    "b": 82
  },
  "hsl": {
    "h": 47.634,
    "s": 60.93,
    "l": 57.843
  },
  "oklch": {
    "l": 0.79225,
    "c": 0.12668,
    "h": 94.8
  },
  "luminance": 0.49873
}

Semantic roles & 50–950 ramp

primary
#D5BA52
secondary
#A7B2DC
accent
#65E444
background
#FEFCF8
surface
#FDF9F0
border
#D5D2CB
text
#16130B
muted
#84827C

Preview Lab

Preview with #D5BA52

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

Preview Lab → · Contrast checker → · Palette generator →

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