#D8BA48#D8BA48

#D8BA48 is a light, vivid yellow. Relative luminance 0.502; OKLCH L 79.4% C 0.135 H 94.3°. Best body text is #000000 at 11.04:1 contrast (WCAG AA passes).

Color values

HEX#D8BA48
RGBrgb(216, 186, 72)
HSLhsl(48, 65%, 56%)
HSVhsv(48, 67%, 85%)
CMYKcmyk(0%, 13.9%, 66.7%, 15.3%)
CIE-LABlab(76.18, -1.82, 59.61)
CIE-LCHlch(76.18, 59.64, 91.75°)
OKLaboklab(79.41% -0.01 0.1346)
OKLCHoklch(79.41% 0.135 94.3)
XYZxyz(47.0498, 50.1871, 13.3385)
Luminance0.5019 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8BA48 #4866D8
analogous
#D87248 #D8BA48 #AED848
triadic
#D8BA48 #48D8BA #BA48D8
tetradic
#D8BA48 #48D872 #4866D8 #D848AE
square
#D8BA48 #48D872 #4866D8 #D848AE
split-complementary
#D8BA48 #48AED8 #7248D8
monochromatic
#89721D #BB9C28 #D8BA48 #E3CD7A #EEE0AD

Accessibility & contrast

On white

1.90
#D8BA48 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.04
#D8BA48 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8BA48
11.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8BA48#FFFFFF#000000##000000
##D8BA481.001.9011.0411.04
#FFFFFF1.901.0021.0021.00
#00000011.0421.001.001.00
##00000011.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#CDB73A
Deuteranopia (green-blind)
#D4C04E
Tritanopia (blue-blind)
#E9ACA2
Achromatopsia (no color)
#BCBCBC

Design tokens & code

CSS
--color: #d8ba48;
/* rgb */ color: rgb(216, 186, 72);
/* oklch */ color: oklch(79.4% 0.135 94.3);
Tailwind
colors: {
  custom: {
    50: '#e8ce80',
    500: '#d8ba48',
    950: '#000000',
  },
}
SCSS
$custom: #d8ba48;
$custom-light: #e8ce80;
$custom-dark: #000000;
JSON
{
  "hex": "#d8ba48",
  "rgb": {
    "r": 216,
    "g": 186,
    "b": 72
  },
  "hsl": {
    "h": 47.5,
    "s": 64.865,
    "l": 56.471
  },
  "oklch": {
    "l": 0.79414,
    "c": 0.13492,
    "h": 94.3
  },
  "luminance": 0.50185
}

Semantic roles & 50–950 ramp

primary
#D8BA48
secondary
#36488F
accent
#63E840
background
#FFFEFB
surface
#FEFAF2
border
#D6D3CC
text
#17130B
muted
#85837E

Preview Lab

Preview with #D8BA48

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

Preview Lab → · Contrast checker → · Palette generator →

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