#9E9B22#9E9B22

#9E9B22 is a light, vivid yellow. Relative luminance 0.308; OKLCH L 67.1% C 0.134 H 108.0°. Best body text is #000000 at 7.17:1 contrast (WCAG AA passes).

Color values

HEX#9E9B22
RGBrgb(158, 155, 34)
HSLhsl(59, 65%, 38%)
HSVhsv(59, 78%, 62%)
CMYKcmyk(0%, 1.9%, 78.5%, 38%)
CIE-LABlab(62.36, -12.73, 58.63)
CIE-LCHlch(62.36, 60.00, 102.25°)
OKLaboklab(67.12% -0.0416 0.1277)
OKLCHoklch(67.12% 0.134 108)
XYZxyz(26.1117, 30.8282, 6.0880)
Luminance0.3083 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E9B22 #22259E
analogous
#9E5D22 #9E9B22 #639E22
triadic
#9E9B22 #229E9B #9B229E
tetradic
#9E9B22 #229E5D #22259E #9E2263
square
#9E9B22 #229E5D #22259E #9E2263
split-complementary
#9E9B22 #22639E #5D229E
monochromatic
#39380C #6C6A17 #9E9B22 #D0CC2D #DCD95E

Accessibility & contrast

On white

2.93
#9E9B22 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.17
#9E9B22 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9E9B22
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E9B22#FFFFFF#000000##000000
##9E9B221.002.937.177.17
#FFFFFF2.931.0021.0021.00
#0000007.1721.001.001.00
##0000007.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#A89500
Deuteranopia (green-blind)
#AA992C
Tritanopia (blue-blind)
#AA9085
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #9e9b22;
/* rgb */ color: rgb(158, 155, 34);
/* oklch */ color: oklch(67.1% 0.134 108.0);
Tailwind
colors: {
  custom: {
    50: '#beb868',
    500: '#9e9b22',
    950: '#000000',
  },
}
SCSS
$custom: #9e9b22;
$custom-light: #beb868;
$custom-dark: #000000;
JSON
{
  "hex": "#9e9b22",
  "rgb": {
    "r": 158,
    "g": 155,
    "b": 34
  },
  "hsl": {
    "h": 58.548,
    "s": 64.583,
    "l": 37.647
  },
  "oklch": {
    "l": 0.67118,
    "c": 0.13432,
    "h": 108
  },
  "luminance": 0.30827
}

Semantic roles & 50–950 ramp

primary
#9E9B22
secondary
#5B5DC1
accent
#44E840
background
#FCFBF6
surface
#F8F6EB
border
#D1D0C6
text
#131107
muted
#82807A

Preview Lab

Preview with #9E9B22

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

Preview Lab → · Contrast checker → · Palette generator →

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