#9FAB20#9FAB20

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

Color values

HEX#9FAB20
RGBrgb(159, 171, 32)
HSLhsl(65, 68%, 40%)
HSVhsv(65, 81%, 67%)
CMYKcmyk(7%, 0%, 81.3%, 32.9%)
CIE-LABlab(66.98, -20.58, 63.34)
CIE-LCHlch(66.98, 66.60, 108.00°)
OKLaboklab(70.83% -0.0636 0.1374)
OKLCHoklch(70.83% 0.151 114.8)
XYZxyz(29.1226, 36.6016, 6.8969)
Luminance0.3660 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9FAB20 #2C20AB
analogous
#AB7220 #9FAB20 #59AB20
triadic
#9FAB20 #209FAB #AB209F
tetradic
#9FAB20 #20AB72 #2C20AB #AB2059
square
#9FAB20 #20AB72 #2C20AB #AB2059
split-complementary
#9FAB20 #2059AB #7220AB
monochromatic
#3F440D #6F7716 #9FAB20 #CAD830 #D7E263

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9FAB20#FFFFFF#000000##000000
##9FAB201.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)
#B7A42E
Tritanopia (blue-blind)
#AAA192
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #9fab20;
/* rgb */ color: rgb(159, 171, 32);
/* oklch */ color: oklch(70.8% 0.151 114.8);
Tailwind
colors: {
  custom: {
    50: '#bfc36a',
    500: '#9fab20',
    950: '#000000',
  },
}
SCSS
$custom: #9fab20;
$custom-light: #bfc36a;
$custom-dark: #000000;
JSON
{
  "hex": "#9fab20",
  "rgb": {
    "r": 159,
    "g": 171,
    "b": 32
  },
  "hsl": {
    "h": 65.18,
    "s": 68.473,
    "l": 39.804
  },
  "oklch": {
    "l": 0.70829,
    "c": 0.15139,
    "h": 114.8
  },
  "luminance": 0.36601
}

Semantic roles & 50–950 ramp

primary
#9FAB20
secondary
#6960C7
accent
#3CEB4C
background
#FCFBF6
surface
#F8F7EC
border
#D1D0C7
text
#131207
muted
#82817A

Preview Lab

Preview with #9FAB20

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

Preview Lab → · Contrast checker → · Palette generator →

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