#9E8322#9E8322

#9E8322 is a mid, moderate yellow. Relative luminance 0.236; OKLCH L 61.8% C 0.115 H 92.5°. Best body text is #000000 at 5.72:1 contrast (WCAG AA passes).

Color values

HEX#9E8322
RGBrgb(158, 131, 34)
HSLhsl(47, 65%, 38%)
HSVhsv(47, 78%, 62%)
CMYKcmyk(0%, 17.1%, 78.5%, 38%)
CIE-LABlab(55.70, 0.27, 52.55)
CIE-LCHlch(55.70, 52.55, 89.71°)
OKLaboklab(61.83% -0.005 0.1147)
OKLCHoklch(61.83% 0.115 92.5)
XYZxyz(22.5069, 23.6186, 4.8864)
Luminance0.2362 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E8322 #223D9E
analogous
#9E4522 #9E8322 #7B9E22
triadic
#9E8322 #229E83 #83229E
tetradic
#9E8322 #229E45 #223D9E #9E227B
square
#9E8322 #229E45 #223D9E #9E227B
split-complementary
#9E8322 #227B9E #45229E
monochromatic
#392F0C #6C5917 #9E8322 #D0AD2D #DCC15E

Accessibility & contrast

On white

3.67
#9E8322 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.72
#9E8322 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9E8322
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E8322#FFFFFF#000000##000000
##9E83221.003.675.725.72
#FFFFFF3.671.0021.0021.00
#0000005.7221.001.001.00
##0000005.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#92810E
Deuteranopia (green-blind)
#998928
Tritanopia (blue-blind)
#AB7870
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #9e8322;
/* rgb */ color: rgb(158, 131, 34);
/* oklch */ color: oklch(61.8% 0.115 92.5);
Tailwind
colors: {
  custom: {
    50: '#bfa665',
    500: '#9e8322',
    950: '#000000',
  },
}
SCSS
$custom: #9e8322;
$custom-light: #bfa665;
$custom-dark: #000000;
JSON
{
  "hex": "#9e8322",
  "rgb": {
    "r": 158,
    "g": 131,
    "b": 34
  },
  "hsl": {
    "h": 46.935,
    "s": 64.583,
    "l": 37.647
  },
  "oklch": {
    "l": 0.61831,
    "c": 0.11484,
    "h": 92.5
  },
  "luminance": 0.23617
}

Semantic roles & 50–950 ramp

primary
#9E8322
secondary
#5B71C1
accent
#65E840
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#130F06
muted
#827F7A

Preview Lab

Preview with #9E8322

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

Preview Lab → · Contrast checker → · Palette generator →

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