#9E8822#9E8822

#9E8822 is a light, moderate yellow. Relative luminance 0.250; OKLCH L 62.9% C 0.118 H 96.2°. Best body text is #000000 at 6.00:1 contrast (WCAG AA passes).

Color values

HEX#9E8822
RGBrgb(158, 136, 34)
HSLhsl(49, 65%, 38%)
HSVhsv(49, 78%, 62%)
CMYKcmyk(0%, 13.9%, 78.5%, 38%)
CIE-LABlab(57.07, -2.50, 53.81)
CIE-LCHlch(57.07, 53.87, 92.66°)
OKLaboklab(62.91% -0.0128 0.1174)
OKLCHoklch(62.91% 0.118 96.2)
XYZxyz(23.1947, 24.9942, 5.1157)
Luminance0.2499 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E8822 #22389E
analogous
#9E4A22 #9E8822 #769E22
triadic
#9E8822 #229E88 #88229E
tetradic
#9E8822 #229E4A #22389E #9E2276
square
#9E8822 #229E4A #22389E #9E2276
split-complementary
#9E8822 #22769E #4A229E
monochromatic
#39310C #6C5D17 #9E8822 #D0B32D #DCC65E

Accessibility & contrast

On white

3.50
#9E8822 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.00
#9E8822 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9E8822
6.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E8822#FFFFFF#000000##000000
##9E88221.003.506.006.00
#FFFFFF3.501.0021.0021.00
#0000006.0021.001.001.00
##0000006.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#97850C
Deuteranopia (green-blind)
#9C8C29
Tritanopia (blue-blind)
#AB7D75
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #9e8822;
/* rgb */ color: rgb(158, 136, 34);
/* oklch */ color: oklch(62.9% 0.118 96.2);
Tailwind
colors: {
  custom: {
    50: '#bfaa66',
    500: '#9e8822',
    950: '#000000',
  },
}
SCSS
$custom: #9e8822;
$custom-light: #bfaa66;
$custom-dark: #000000;
JSON
{
  "hex": "#9e8822",
  "rgb": {
    "r": 158,
    "g": 136,
    "b": 34
  },
  "hsl": {
    "h": 49.355,
    "s": 64.583,
    "l": 37.647
  },
  "oklch": {
    "l": 0.62911,
    "c": 0.11812,
    "h": 96.2
  },
  "luminance": 0.24993
}

Semantic roles & 50–950 ramp

primary
#9E8822
secondary
#5B6DC1
accent
#5EE840
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#130F06
muted
#827F7A

Preview Lab

Preview with #9E8822

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

Preview Lab → · Contrast checker → · Palette generator →

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