#9FAB2B#9FAB2B

#9FAB2B is a light, vivid yellow. Relative luminance 0.367; OKLCH L 70.9% C 0.146 H 114.9°. Best body text is #000000 at 8.33:1 contrast (WCAG AA passes).

Color values

HEX#9FAB2B
RGBrgb(159, 171, 43)
HSLhsl(66, 60%, 42%)
HSVhsv(66, 75%, 67%)
CMYKcmyk(7%, 0%, 74.9%, 32.9%)
CIE-LABlab(67.03, -20.13, 60.02)
CIE-LCHlch(67.03, 63.31, 108.54°)
OKLaboklab(70.89% -0.0614 0.1323)
OKLCHoklch(70.89% 0.146 114.9)
XYZxyz(29.2979, 36.6717, 7.8200)
Luminance0.3667 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9FAB2B #372BAB
analogous
#AB772B #9FAB2B #5FAB2B
triadic
#9FAB2B #2B9FAB #AB2B9F
tetradic
#9FAB2B #2BAB77 #372BAB #AB2B5F
square
#9FAB2B #2BAB77 #372BAB #AB2B5F
split-complementary
#9FAB2B #2B5FAB #772BAB
monochromatic
#444912 #727A1F #9FAB2B #C3D043 #D2DC74

Accessibility & contrast

On white

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

On black

8.33
#9FAB2B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9FAB2B
8.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9FAB2B#FFFFFF#000000##000000
##9FAB2B1.002.528.338.33
#FFFFFF2.521.0021.0021.00
#0000008.3321.001.001.00
##0000008.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#B8A20E
Deuteranopia (green-blind)
#B7A436
Tritanopia (blue-blind)
#AAA193
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #9fab2b;
/* rgb */ color: rgb(159, 171, 43);
/* oklch */ color: oklch(70.9% 0.146 114.9);
Tailwind
colors: {
  custom: {
    50: '#bfc36e',
    500: '#9fab2b',
    950: '#000000',
  },
}
SCSS
$custom: #9fab2b;
$custom-light: #bfc36e;
$custom-dark: #000000;
JSON
{
  "hex": "#9fab2b",
  "rgb": {
    "r": 159,
    "g": 171,
    "b": 43
  },
  "hsl": {
    "h": 65.625,
    "s": 59.813,
    "l": 41.961
  },
  "oklch": {
    "l": 0.70888,
    "c": 0.14587,
    "h": 114.9
  },
  "luminance": 0.36671
}

Semantic roles & 50–950 ramp

primary
#9FAB2B
secondary
#766EC4
accent
#45E354
background
#FCFBF7
surface
#F8F7ED
border
#D1D0C8
text
#131208
muted
#82817B

Preview Lab

Preview with #9FAB2B

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

Preview Lab → · Contrast checker → · Palette generator →

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