#9E8E22#9E8E22

#9E8E22 is a light, vivid yellow. Relative luminance 0.267; OKLCH L 64.2% C 0.123 H 100.4°. Best body text is #000000 at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#9E8E22
RGBrgb(158, 142, 34)
HSLhsl(52, 65%, 38%)
HSVhsv(52, 78%, 62%)
CMYKcmyk(0%, 10.1%, 78.5%, 38%)
CIE-LABlab(58.73, -5.78, 55.33)
CIE-LCHlch(58.73, 55.63, 95.97°)
OKLaboklab(64.22% -0.0221 0.1207)
OKLCHoklch(64.22% 0.123 100.4)
XYZxyz(24.0635, 26.7318, 5.4053)
Luminance0.2673 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E8E22 #22329E
analogous
#9E5022 #9E8E22 #709E22
triadic
#9E8E22 #229E8E #8E229E
tetradic
#9E8E22 #229E50 #22329E #9E2270
square
#9E8E22 #229E50 #22329E #9E2270
split-complementary
#9E8E22 #22709E #50229E
monochromatic
#39330C #6C6117 #9E8E22 #D0BB2D #DCCC5E

Accessibility & contrast

On white

3.31
#9E8E22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.35
#9E8E22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9E8E22
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E8E22#FFFFFF#000000##000000
##9E8E221.003.316.356.35
#FFFFFF3.311.0021.0021.00
#0000006.3521.001.001.00
##0000006.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#9C8A08
Deuteranopia (green-blind)
#A1902A
Tritanopia (blue-blind)
#AB837A
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #9e8e22;
/* rgb */ color: rgb(158, 142, 34);
/* oklch */ color: oklch(64.2% 0.123 100.4);
Tailwind
colors: {
  custom: {
    50: '#beae67',
    500: '#9e8e22',
    950: '#000000',
  },
}
SCSS
$custom: #9e8e22;
$custom-light: #beae67;
$custom-dark: #000000;
JSON
{
  "hex": "#9e8e22",
  "rgb": {
    "r": 158,
    "g": 142,
    "b": 34
  },
  "hsl": {
    "h": 52.258,
    "s": 64.583,
    "l": 37.647
  },
  "oklch": {
    "l": 0.64223,
    "c": 0.12268,
    "h": 100.4
  },
  "luminance": 0.26731
}

Semantic roles & 50–950 ramp

primary
#9E8E22
secondary
#5B68C1
accent
#56E840
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A

Preview Lab

Preview with #9E8E22

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

Preview Lab → · Contrast checker → · Palette generator →

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