#9FAB22#9FAB22

#9FAB22 is a light, vivid yellow. Relative luminance 0.366; OKLCH L 70.8% C 0.150 H 114.8°. Best body text is #000000 at 8.32:1 contrast (WCAG AA passes).

Color values

HEX#9FAB22
RGBrgb(159, 171, 34)
HSLhsl(65, 67%, 40%)
HSVhsv(65, 80%, 67%)
CMYKcmyk(7%, 0%, 80.1%, 32.9%)
CIE-LABlab(66.99, -20.51, 62.79)
CIE-LCHlch(66.99, 66.05, 108.09°)
OKLaboklab(70.84% -0.0632 0.1366)
OKLCHoklch(70.84% 0.151 114.8)
XYZxyz(29.1506, 36.6128, 7.0444)
Luminance0.3661 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9FAB22 #2E22AB
analogous
#AB7222 #9FAB22 #5BAB22
triadic
#9FAB22 #229FAB #AB229F
tetradic
#9FAB22 #22AB72 #2E22AB #AB225B
square
#9FAB22 #22AB72 #2E22AB #AB225B
split-complementary
#9FAB22 #225BAB #7222AB
monochromatic
#40450E #707818 #9FAB22 #C8D734 #D6E167

Accessibility & contrast

On white

2.52
#9FAB22 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.32
#9FAB22 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9FAB22
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9FAB22#FFFFFF#000000##000000
##9FAB221.002.528.328.32
#FFFFFF2.521.0021.0021.00
#0000008.3221.001.001.00
##0000008.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#B8A200
Deuteranopia (green-blind)
#B7A42F
Tritanopia (blue-blind)
#AAA192
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #9fab22;
/* rgb */ color: rgb(159, 171, 34);
/* oklch */ color: oklch(70.8% 0.150 114.8);
Tailwind
colors: {
  custom: {
    50: '#bfc36a',
    500: '#9fab22',
    950: '#000000',
  },
}
SCSS
$custom: #9fab22;
$custom-light: #bfc36a;
$custom-dark: #000000;
JSON
{
  "hex": "#9fab22",
  "rgb": {
    "r": 159,
    "g": 171,
    "b": 34
  },
  "hsl": {
    "h": 65.255,
    "s": 66.829,
    "l": 40.196
  },
  "oklch": {
    "l": 0.70838,
    "c": 0.1505,
    "h": 114.8
  },
  "luminance": 0.36612
}

Semantic roles & 50–950 ramp

primary
#9FAB22
secondary
#6B63C6
accent
#3EEA4D
background
#FCFBF6
surface
#F8F7EC
border
#D1D0C7
text
#131207
muted
#82817A

Preview Lab

Preview with #9FAB22

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

Preview Lab → · Contrast checker → · Palette generator →

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