#9E8B22#9E8B22

#9E8B22 is a light, vivid yellow. Relative luminance 0.259; OKLCH L 63.6% C 0.120 H 98.4°. Best body text is #000000 at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#9E8B22
RGBrgb(158, 139, 34)
HSLhsl(51, 65%, 38%)
HSVhsv(51, 78%, 62%)
CMYKcmyk(0%, 12%, 78.5%, 38%)
CIE-LABlab(57.90, -4.15, 54.57)
CIE-LCHlch(57.90, 54.73, 94.35°)
OKLaboklab(63.56% -0.0175 0.1191)
OKLCHoklch(63.56% 0.12 98.4)
XYZxyz(23.6231, 25.8511, 5.2585)
Luminance0.2585 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E8B22 #22359E
analogous
#9E4D22 #9E8B22 #739E22
triadic
#9E8B22 #229E8B #8B229E
tetradic
#9E8B22 #229E4D #22359E #9E2273
square
#9E8B22 #229E4D #22359E #9E2273
split-complementary
#9E8B22 #22739E #4D229E
monochromatic
#39320C #6C5F17 #9E8B22 #D0B72D #DCC95E

Accessibility & contrast

On white

3.40
#9E8B22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.17
#9E8B22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9E8B22
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E8B22#FFFFFF#000000##000000
##9E8B221.003.406.176.17
#FFFFFF3.401.0021.0021.00
#0000006.1721.001.001.00
##0000006.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#99870A
Deuteranopia (green-blind)
#9E8E29
Tritanopia (blue-blind)
#AB8077
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #9e8b22;
/* rgb */ color: rgb(158, 139, 34);
/* oklch */ color: oklch(63.6% 0.120 98.4);
Tailwind
colors: {
  custom: {
    50: '#beac66',
    500: '#9e8b22',
    950: '#000000',
  },
}
SCSS
$custom: #9e8b22;
$custom-light: #beac66;
$custom-dark: #000000;
JSON
{
  "hex": "#9e8b22",
  "rgb": {
    "r": 158,
    "g": 139,
    "b": 34
  },
  "hsl": {
    "h": 50.806,
    "s": 64.583,
    "l": 37.647
  },
  "oklch": {
    "l": 0.63564,
    "c": 0.12033,
    "h": 98.4
  },
  "luminance": 0.2585
}

Semantic roles & 50–950 ramp

primary
#9E8B22
secondary
#5B6AC1
accent
#5AE840
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A

Preview Lab

Preview with #9E8B22

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

Preview Lab → · Contrast checker → · Palette generator →

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