#9E8922#9E8922

#9E8922 is a light, moderate yellow. Relative luminance 0.253; OKLCH L 63.1% C 0.119 H 97.0°. Best body text is #000000 at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#9E8922
RGBrgb(158, 137, 34)
HSLhsl(50, 65%, 38%)
HSVhsv(50, 78%, 62%)
CMYKcmyk(0%, 13.3%, 78.5%, 38%)
CIE-LABlab(57.34, -3.05, 54.07)
CIE-LCHlch(57.34, 54.15, 93.23°)
OKLaboklab(63.13% -0.0144 0.118)
OKLCHoklch(63.13% 0.119 97)
XYZxyz(23.3362, 25.2772, 5.1629)
Luminance0.2528 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E8922 #22379E
analogous
#9E4B22 #9E8922 #759E22
triadic
#9E8922 #229E89 #89229E
tetradic
#9E8922 #229E4B #22379E #9E2275
square
#9E8922 #229E4B #22379E #9E2275
split-complementary
#9E8922 #22759E #4B229E
monochromatic
#39320C #6C5D17 #9E8922 #D0B52D #DCC75E

Accessibility & contrast

On white

3.47
#9E8922 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.06
#9E8922 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9E8922
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E8922#FFFFFF#000000##000000
##9E89221.003.476.066.06
#FFFFFF3.471.0021.0021.00
#0000006.0621.001.001.00
##0000006.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#98860B
Deuteranopia (green-blind)
#9D8D29
Tritanopia (blue-blind)
#AB7E75
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #9e8922;
/* rgb */ color: rgb(158, 137, 34);
/* oklch */ color: oklch(63.1% 0.119 97.0);
Tailwind
colors: {
  custom: {
    50: '#bfab66',
    500: '#9e8922',
    950: '#000000',
  },
}
SCSS
$custom: #9e8922;
$custom-light: #bfab66;
$custom-dark: #000000;
JSON
{
  "hex": "#9e8922",
  "rgb": {
    "r": 158,
    "g": 137,
    "b": 34
  },
  "hsl": {
    "h": 49.839,
    "s": 64.583,
    "l": 37.647
  },
  "oklch": {
    "l": 0.63128,
    "c": 0.11883,
    "h": 97
  },
  "luminance": 0.25276
}

Semantic roles & 50–950 ramp

primary
#9E8922
secondary
#5B6CC1
accent
#5DE840
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A

Preview Lab

Preview with #9E8922

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

Preview Lab → · Contrast checker → · Palette generator →

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