#9E8D22#9E8D22

#9E8D22 is a light, vivid yellow. Relative luminance 0.264; OKLCH L 64.0% C 0.122 H 99.7°. Best body text is #000000 at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#9E8D22
RGBrgb(158, 141, 34)
HSLhsl(52, 65%, 38%)
HSVhsv(52, 78%, 62%)
CMYKcmyk(0%, 10.8%, 78.5%, 38%)
CIE-LABlab(58.45, -5.24, 55.08)
CIE-LCHlch(58.45, 55.33, 95.43°)
OKLaboklab(64% -0.0206 0.1201)
OKLCHoklch(64% 0.122 99.7)
XYZxyz(23.9154, 26.4355, 5.3559)
Luminance0.2643 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E8D22 #22339E
analogous
#9E4F22 #9E8D22 #719E22
triadic
#9E8D22 #229E8D #8D229E
tetradic
#9E8D22 #229E4F #22339E #9E2271
square
#9E8D22 #229E4F #22339E #9E2271
split-complementary
#9E8D22 #22719E #4F229E
monochromatic
#39330C #6C6017 #9E8D22 #D0BA2D #DCCB5E

Accessibility & contrast

On white

3.34
#9E8D22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.29
#9E8D22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9E8D22
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E8D22#FFFFFF#000000##000000
##9E8D221.003.346.296.29
#FFFFFF3.341.0021.0021.00
#0000006.2921.001.001.00
##0000006.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#9B8909
Deuteranopia (green-blind)
#A08F2A
Tritanopia (blue-blind)
#AB8279
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #9e8d22;
/* rgb */ color: rgb(158, 141, 34);
/* oklch */ color: oklch(64.0% 0.122 99.7);
Tailwind
colors: {
  custom: {
    50: '#beae66',
    500: '#9e8d22',
    950: '#000000',
  },
}
SCSS
$custom: #9e8d22;
$custom-light: #beae66;
$custom-dark: #000000;
JSON
{
  "hex": "#9e8d22",
  "rgb": {
    "r": 158,
    "g": 141,
    "b": 34
  },
  "hsl": {
    "h": 51.774,
    "s": 64.583,
    "l": 37.647
  },
  "oklch": {
    "l": 0.64003,
    "c": 0.12188,
    "h": 99.7
  },
  "luminance": 0.26434
}

Semantic roles & 50–950 ramp

primary
#9E8D22
secondary
#5B69C1
accent
#57E840
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A

Preview Lab

Preview with #9E8D22

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

Preview Lab → · Contrast checker → · Palette generator →

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