#D8BA45#D8BA45

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

Color values

HEX#D8BA45
RGBrgb(216, 186, 69)
HSLhsl(48, 65%, 56%)
HSVhsv(48, 68%, 85%)
CMYKcmyk(0%, 13.9%, 68.1%, 15.3%)
CIE-LABlab(76.16, -1.98, 60.83)
CIE-LCHlch(76.16, 60.86, 91.87°)
OKLaboklab(79.39% -0.0109 0.1367)
OKLCHoklch(79.39% 0.137 94.5)
XYZxyz(46.9543, 50.1489, 12.8356)
Luminance0.5015 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8BA45 #4563D8
analogous
#D87045 #D8BA45 #ACD845
triadic
#D8BA45 #45D8BA #BA45D8
tetradic
#D8BA45 #45D870 #4563D8 #D845AC
square
#D8BA45 #45D870 #4563D8 #D845AC
split-complementary
#D8BA45 #45ACD8 #7045D8
monochromatic
#86711C #B99B27 #D8BA45 #E3CD78 #EDE0AA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D8BA45#FFFFFF#000000##000000
##D8BA451.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)
#CDB636
Deuteranopia (green-blind)
#D4C04B
Tritanopia (blue-blind)
#E9ACA2
Achromatopsia (no color)
#BCBCBC

Design tokens & code

CSS
--color: #d8ba45;
/* rgb */ color: rgb(216, 186, 69);
/* oklch */ color: oklch(79.4% 0.137 94.5);
Tailwind
colors: {
  custom: {
    50: '#e8ce7f',
    500: '#d8ba45',
    950: '#000000',
  },
}
SCSS
$custom: #d8ba45;
$custom-light: #e8ce7f;
$custom-dark: #000000;
JSON
{
  "hex": "#d8ba45",
  "rgb": {
    "r": 216,
    "g": 186,
    "b": 69
  },
  "hsl": {
    "h": 47.755,
    "s": 65.333,
    "l": 55.882
  },
  "oklch": {
    "l": 0.79388,
    "c": 0.13708,
    "h": 94.5
  },
  "luminance": 0.50146
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D8BA45

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

Preview Lab → · Contrast checker → · Palette generator →

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