#D8BA46#D8BA46

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

Color values

HEX#D8BA46
RGBrgb(216, 186, 70)
HSLhsl(48, 65%, 56%)
HSVhsv(48, 68%, 85%)
CMYKcmyk(0%, 13.9%, 67.6%, 15.3%)
CIE-LABlab(76.17, -1.93, 60.43)
CIE-LCHlch(76.17, 60.46, 91.83°)
OKLaboklab(79.4% -0.0106 0.136)
OKLCHoklch(79.4% 0.136 94.5)
XYZxyz(46.9856, 50.1614, 13.0004)
Luminance0.5016 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8BA46 #4664D8
analogous
#D87146 #D8BA46 #ADD846
triadic
#D8BA46 #46D8BA #BA46D8
tetradic
#D8BA46 #46D871 #4664D8 #D846AD
square
#D8BA46 #46D871 #4664D8 #D846AD
split-complementary
#D8BA46 #46ADD8 #7146D8
monochromatic
#87711C #BA9C27 #D8BA46 #E3CD79 #EDE0AB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D8BA46#FFFFFF#000000##000000
##D8BA461.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)
#CDB737
Deuteranopia (green-blind)
#D4C04C
Tritanopia (blue-blind)
#E9ACA2
Achromatopsia (no color)
#BCBCBC

Design tokens & code

CSS
--color: #d8ba46;
/* rgb */ color: rgb(216, 186, 70);
/* oklch */ color: oklch(79.4% 0.136 94.5);
Tailwind
colors: {
  custom: {
    50: '#e8ce7f',
    500: '#d8ba46',
    950: '#000000',
  },
}
SCSS
$custom: #d8ba46;
$custom-light: #e8ce7f;
$custom-dark: #000000;
JSON
{
  "hex": "#d8ba46",
  "rgb": {
    "r": 216,
    "g": 186,
    "b": 70
  },
  "hsl": {
    "h": 47.671,
    "s": 65.179,
    "l": 56.078
  },
  "oklch": {
    "l": 0.79396,
    "c": 0.13637,
    "h": 94.5
  },
  "luminance": 0.50159
}

Semantic roles & 50–950 ramp

primary
#D8BA46
secondary
#35478D
accent
#62E840
background
#FFFEFB
surface
#FEFAF2
border
#D6D3CC
text
#17130A
muted
#85837D

Preview Lab

Preview with #D8BA46

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

Preview Lab → · Contrast checker → · Palette generator →

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