#9FAB2F#9FAB2F

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

Color values

HEX#9FAB2F
RGBrgb(159, 171, 47)
HSLhsl(66, 57%, 43%)
HSVhsv(66, 73%, 67%)
CMYKcmyk(7%, 0%, 72.5%, 32.9%)
CIE-LABlab(67.05, -19.94, 58.65)
CIE-LCHlch(67.05, 61.94, 108.77°)
OKLaboklab(70.91% -0.0605 0.1301)
OKLCHoklch(70.91% 0.144 115)
XYZxyz(29.3749, 36.7025, 8.2256)
Luminance0.3670 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9FAB2F #3B2FAB
analogous
#AB792F #9FAB2F #61AB2F
triadic
#9FAB2F #2F9FAB #AB2F9F
tetradic
#9FAB2F #2FAB79 #3B2FAB #AB2F61
square
#9FAB2F #2FAB79 #3B2FAB #AB2F61
split-complementary
#9FAB2F #2F61AB #792FAB
monochromatic
#464B15 #727B22 #9FAB2F #C1CD4A #D1DA7A

Accessibility & contrast

On white

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

On black

8.34
#9FAB2F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9FAB2F
8.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9FAB2F#FFFFFF#000000##000000
##9FAB2F1.002.528.348.34
#FFFFFF2.521.0021.0021.00
#0000008.3421.001.001.00
##0000008.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#B7A218
Deuteranopia (green-blind)
#B7A439
Tritanopia (blue-blind)
#A9A193
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #9fab2f;
/* rgb */ color: rgb(159, 171, 47);
/* oklch */ color: oklch(70.9% 0.143 115.0);
Tailwind
colors: {
  custom: {
    50: '#bfc370',
    500: '#9fab2f',
    950: '#000000',
  },
}
SCSS
$custom: #9fab2f;
$custom-light: #bfc370;
$custom-dark: #000000;
JSON
{
  "hex": "#9fab2f",
  "rgb": {
    "r": 159,
    "g": 171,
    "b": 47
  },
  "hsl": {
    "h": 65.806,
    "s": 56.881,
    "l": 42.745
  },
  "oklch": {
    "l": 0.70914,
    "c": 0.1435,
    "h": 115
  },
  "luminance": 0.36702
}

Semantic roles & 50–950 ramp

primary
#9FAB2F
secondary
#7B73C3
accent
#48E056
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131208
muted
#82817B

Preview Lab

Preview with #9FAB2F

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

Preview Lab → · Contrast checker → · Palette generator →

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