#D8B442#D8B442

#D8B442 is a light, vivid yellow. Relative luminance 0.476; OKLCH L 78.1% C 0.135 H 91.1°. Best body text is #000000 at 10.53:1 contrast (WCAG AA passes).

Color values

HEX#D8B442
RGBrgb(216, 180, 66)
HSLhsl(46, 66%, 55%)
HSVhsv(46, 69%, 85%)
CMYKcmyk(0%, 16.7%, 69.4%, 15.3%)
CIE-LABlab(74.60, 1.00, 60.46)
CIE-LCHlch(74.60, 60.47, 89.05°)
OKLaboklab(78.15% -0.0026 0.1353)
OKLCHoklch(78.15% 0.135 91.1)
XYZxyz(45.6260, 47.6375, 11.9450)
Luminance0.4763 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8B442 #4266D8
analogous
#D86942 #D8B442 #B1D842
triadic
#D8B442 #42D8B4 #B442D8
tetradic
#D8B442 #42D869 #4266D8 #D842B1
square
#D8B442 #42D869 #4266D8 #D842B1
split-complementary
#D8B442 #42B1D8 #6942D8
monochromatic
#846B1B #B79426 #D8B442 #E2C875 #EDDCA7

Accessibility & contrast

On white

1.99
#D8B442 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.53
#D8B442 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8B442
10.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8B442#FFFFFF#000000##000000
##D8B4421.001.9910.5310.53
#FFFFFF1.991.0021.0021.00
#00000010.5321.001.001.00
##00000010.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#C7B233
Deuteranopia (green-blind)
#D0BC48
Tritanopia (blue-blind)
#E9A69D
Achromatopsia (no color)
#B7B7B7

Design tokens & code

CSS
--color: #d8b442;
/* rgb */ color: rgb(216, 180, 66);
/* oklch */ color: oklch(78.1% 0.135 91.1);
Tailwind
colors: {
  custom: {
    50: '#e8ca7c',
    500: '#d8b442',
    950: '#000000',
  },
}
SCSS
$custom: #d8b442;
$custom-light: #e8ca7c;
$custom-dark: #000000;
JSON
{
  "hex": "#d8b442",
  "rgb": {
    "r": 216,
    "g": 180,
    "b": 66
  },
  "hsl": {
    "h": 45.6,
    "s": 65.789,
    "l": 55.294
  },
  "oklch": {
    "l": 0.78145,
    "c": 0.13537,
    "h": 91.1
  },
  "luminance": 0.47635
}

Semantic roles & 50–950 ramp

primary
#D8B442
secondary
#9CABDA
accent
#68E93F
background
#FEFCF7
surface
#FDF8EE
border
#D5D1C9
text
#17130A
muted
#85827C

Preview Lab

Preview with #D8B442

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

Preview Lab → · Contrast checker → · Palette generator →

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