#D8BA47#D8BA47

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

Color values

HEX#D8BA47
RGBrgb(216, 186, 71)
HSLhsl(48, 65%, 56%)
HSVhsv(48, 67%, 85%)
CMYKcmyk(0%, 13.9%, 67.1%, 15.3%)
CIE-LABlab(76.18, -1.87, 60.02)
CIE-LCHlch(76.18, 60.05, 91.79°)
OKLaboklab(79.41% -0.0103 0.1353)
OKLCHoklch(79.41% 0.136 94.4)
XYZxyz(47.0174, 50.1742, 13.1681)
Luminance0.5017 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8BA47 #4765D8
analogous
#D87247 #D8BA47 #AED847
triadic
#D8BA47 #47D8BA #BA47D8
tetradic
#D8BA47 #47D872 #4765D8 #D847AE
square
#D8BA47 #47D872 #4765D8 #D847AE
split-complementary
#D8BA47 #47AED8 #7247D8
monochromatic
#88721D #BA9C27 #D8BA47 #E3CD79 #EDE0AC

Accessibility & contrast

On white

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

On black

11.03
#D8BA47 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8BA47
11.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8BA47#FFFFFF#000000##000000
##D8BA471.001.9011.0311.03
#FFFFFF1.901.0021.0021.00
#00000011.0321.001.001.00
##00000011.0321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d8ba47;
/* rgb */ color: rgb(216, 186, 71);
/* oklch */ color: oklch(79.4% 0.136 94.4);
Tailwind
colors: {
  custom: {
    50: '#e8ce80',
    500: '#d8ba47',
    950: '#000000',
  },
}
SCSS
$custom: #d8ba47;
$custom-light: #e8ce80;
$custom-dark: #000000;
JSON
{
  "hex": "#d8ba47",
  "rgb": {
    "r": 216,
    "g": 186,
    "b": 71
  },
  "hsl": {
    "h": 47.586,
    "s": 65.022,
    "l": 56.275
  },
  "oklch": {
    "l": 0.79405,
    "c": 0.13565,
    "h": 94.4
  },
  "luminance": 0.50172
}

Semantic roles & 50–950 ramp

primary
#D8BA47
secondary
#35488E
accent
#63E840
background
#FFFEFB
surface
#FEFAF2
border
#D6D3CC
text
#17130B
muted
#85837E

Preview Lab

Preview with #D8BA47

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

Preview Lab → · Contrast checker → · Palette generator →

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