#D8B342#D8B342

#D8B342 is a light, vivid yellow. Relative luminance 0.472; OKLCH L 77.9% C 0.135 H 90.5°. Best body text is #000000 at 10.45:1 contrast (WCAG AA passes).

Color values

HEX#D8B342
RGBrgb(216, 179, 66)
HSLhsl(45, 66%, 55%)
HSVhsv(45, 69%, 85%)
CMYKcmyk(0%, 17.1%, 69.4%, 15.3%)
CIE-LABlab(74.34, 1.52, 60.20)
CIE-LCHlch(74.34, 60.21, 88.55°)
OKLaboklab(77.94% -0.0011 0.1348)
OKLCHoklch(77.94% 0.135 90.5)
XYZxyz(45.4248, 47.2352, 11.8779)
Luminance0.4723 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8B342 #4267D8
analogous
#D86842 #D8B342 #B2D842
triadic
#D8B342 #42D8B3 #B342D8
tetradic
#D8B342 #42D868 #4267D8 #D842B2
square
#D8B342 #42D868 #4267D8 #D842B2
split-complementary
#D8B342 #42B2D8 #6842D8
monochromatic
#846A1B #B79326 #D8B342 #E2C775 #EDDCA7

Accessibility & contrast

On white

2.01
#D8B342 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.45
#D8B342 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8B342
10.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8B342#FFFFFF#000000##000000
##D8B3421.002.0110.4510.45
#FFFFFF2.011.0021.0021.00
#00000010.4521.001.001.00
##00000010.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#C6B133
Deuteranopia (green-blind)
#D0BB48
Tritanopia (blue-blind)
#E9A59C
Achromatopsia (no color)
#B7B7B7

Design tokens & code

CSS
--color: #d8b342;
/* rgb */ color: rgb(216, 179, 66);
/* oklch */ color: oklch(77.9% 0.135 90.5);
Tailwind
colors: {
  custom: {
    50: '#e8c97c',
    500: '#d8b342',
    950: '#000000',
  },
}
SCSS
$custom: #d8b342;
$custom-light: #e8c97c;
$custom-dark: #000000;
JSON
{
  "hex": "#d8b342",
  "rgb": {
    "r": 216,
    "g": 179,
    "b": 66
  },
  "hsl": {
    "h": 45.2,
    "s": 65.789,
    "l": 55.294
  },
  "oklch": {
    "l": 0.77943,
    "c": 0.13478,
    "h": 90.5
  },
  "luminance": 0.47232
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D8B342

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

Preview Lab → · Contrast checker → · Palette generator →

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