#9E8817#9E8817

#9E8817 is a light, vivid yellow. Relative luminance 0.249; OKLCH L 62.9% C 0.123 H 96.9°. Best body text is #000000 at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#9E8817
RGBrgb(158, 136, 23)
HSLhsl(50, 75%, 35%)
HSVhsv(50, 85%, 62%)
CMYKcmyk(0%, 13.9%, 85.4%, 38%)
CIE-LABlab(57.02, -2.88, 57.21)
CIE-LCHlch(57.02, 57.28, 92.88°)
OKLaboklab(62.85% -0.0149 0.1225)
OKLCHoklch(62.85% 0.123 96.9)
XYZxyz(23.0607, 24.9406, 4.4098)
Luminance0.2494 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E8817 #172D9E
analogous
#9E4417 #9E8817 #709E17
triadic
#9E8817 #179E88 #88179E
tetradic
#9E8817 #179E44 #172D9E #9E1770
square
#9E8817 #179E44 #172D9E #9E1770
split-complementary
#9E8817 #17709E #44179E
monochromatic
#332C07 #695A0F #9E8817 #D3B61F #E5CC4B

Accessibility & contrast

On white

3.51
#9E8817 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.99
#9E8817 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9E8817
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E8817#FFFFFF#000000##000000
##9E88171.003.515.995.99
#FFFFFF3.511.0021.0021.00
#0000005.9921.001.001.00
##0000005.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#978500
Deuteranopia (green-blind)
#9D8C21
Tritanopia (blue-blind)
#AB7D74
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #9e8817;
/* rgb */ color: rgb(158, 136, 23);
/* oklch */ color: oklch(62.9% 0.123 96.9);
Tailwind
colors: {
  custom: {
    50: '#bfaa61',
    500: '#9e8817',
    950: '#000000',
  },
}
SCSS
$custom: #9e8817;
$custom-light: #bfaa61;
$custom-dark: #000000;
JSON
{
  "hex": "#9e8817",
  "rgb": {
    "r": 158,
    "g": 136,
    "b": 23
  },
  "hsl": {
    "h": 50.222,
    "s": 74.586,
    "l": 35.49
  },
  "oklch": {
    "l": 0.62853,
    "c": 0.12337,
    "h": 96.9
  },
  "luminance": 0.24939
}

Semantic roles & 50–950 ramp

primary
#9E8817
secondary
#4A5FC6
accent
#55F137
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#130F05
muted
#827F7A

Preview Lab

Preview with #9E8817

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

Preview Lab → · Contrast checker → · Palette generator →

#9E8817 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva