#9FAB21#9FAB21

#9FAB21 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#9FAB21
RGBrgb(159, 171, 33)
HSLhsl(65, 68%, 40%)
HSVhsv(65, 81%, 67%)
CMYKcmyk(7%, 0%, 80.7%, 32.9%)
CIE-LABlab(66.98, -20.54, 63.07)
CIE-LCHlch(66.98, 66.33, 108.04°)
OKLaboklab(70.83% -0.0634 0.137)
OKLCHoklch(70.83% 0.151 114.8)
XYZxyz(29.1364, 36.6071, 6.9696)
Luminance0.3661 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9FAB21 #2D21AB
analogous
#AB7221 #9FAB21 #5AAB21
triadic
#9FAB21 #219FAB #AB219F
tetradic
#9FAB21 #21AB72 #2D21AB #AB215A
square
#9FAB21 #21AB72 #2D21AB #AB215A
split-complementary
#9FAB21 #215AAB #7221AB
monochromatic
#40440D #6F7817 #9FAB21 #C9D732 #D7E165

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9FAB21#FFFFFF#000000##000000
##9FAB211.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: #9fab21;
/* rgb */ color: rgb(159, 171, 33);
/* oklch */ color: oklch(70.8% 0.151 114.8);
Tailwind
colors: {
  custom: {
    50: '#bfc36a',
    500: '#9fab21',
    950: '#000000',
  },
}
SCSS
$custom: #9fab21;
$custom-light: #bfc36a;
$custom-dark: #000000;
JSON
{
  "hex": "#9fab21",
  "rgb": {
    "r": 159,
    "g": 171,
    "b": 33
  },
  "hsl": {
    "h": 65.217,
    "s": 67.647,
    "l": 40
  },
  "oklch": {
    "l": 0.70833,
    "c": 0.15095,
    "h": 114.8
  },
  "luminance": 0.36607
}

Semantic roles & 50–950 ramp

primary
#9FAB21
secondary
#6A61C7
accent
#3DEB4C
background
#FCFBF6
surface
#F8F7EC
border
#D1D0C7
text
#131207
muted
#82817A

Preview Lab

Preview with #9FAB21

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

Preview Lab → · Contrast checker → · Palette generator →

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