#9FAC2F#9FAC2F

#9FAC2F is a light, vivid yellow. Relative luminance 0.371; OKLCH L 71.1% C 0.145 H 115.4°. Best body text is #000000 at 8.42:1 contrast (WCAG AA passes).

Color values

HEX#9FAC2F
RGBrgb(159, 172, 47)
HSLhsl(66, 57%, 43%)
HSVhsv(66, 73%, 67%)
CMYKcmyk(7.6%, 0%, 72.7%, 32.5%)
CIE-LABlab(67.34, -20.44, 58.92)
CIE-LCHlch(67.34, 62.37, 109.13°)
OKLaboklab(71.14% -0.0619 0.1307)
OKLCHoklch(71.14% 0.145 115.4)
XYZxyz(29.5645, 37.0817, 8.2888)
Luminance0.3708 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9FAC2F #3C2FAC
analogous
#AC7A2F #9FAC2F #60AC2F
triadic
#9FAC2F #2F9FAC #AC2F9F
tetradic
#9FAC2F #2FAC7A #3C2FAC #AC2F60
square
#9FAC2F #2FAC7A #3C2FAC #AC2F60
split-complementary
#9FAC2F #2F60AC #7A2FAC
monochromatic
#464C15 #737C22 #9FAC2F #C0CE4B #D1DB7B

Accessibility & contrast

On white

2.50
#9FAC2F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.42
#9FAC2F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9FAC2F
8.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9FAC2F#FFFFFF#000000##000000
##9FAC2F1.002.508.428.42
#FFFFFF2.501.0021.0021.00
#0000008.4221.001.001.00
##0000008.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#B8A317
Deuteranopia (green-blind)
#B7A539
Tritanopia (blue-blind)
#A9A294
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #9fac2f;
/* rgb */ color: rgb(159, 172, 47);
/* oklch */ color: oklch(71.1% 0.145 115.4);
Tailwind
colors: {
  custom: {
    50: '#bfc470',
    500: '#9fac2f',
    950: '#000000',
  },
}
SCSS
$custom: #9fac2f;
$custom-light: #bfc470;
$custom-dark: #000000;
JSON
{
  "hex": "#9fac2f",
  "rgb": {
    "r": 159,
    "g": 172,
    "b": 47
  },
  "hsl": {
    "h": 66.24,
    "s": 57.078,
    "l": 42.941
  },
  "oklch": {
    "l": 0.71143,
    "c": 0.14462,
    "h": 115.4
  },
  "luminance": 0.37081
}

Semantic roles & 50–950 ramp

primary
#9FAC2F
secondary
#7C74C3
accent
#47E057
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131208
muted
#82817B

Preview Lab

Preview with #9FAC2F

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

Preview Lab → · Contrast checker → · Palette generator →

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