#9FAC2A#9FAC2A

#9FAC2A is a light, vivid yellow. Relative luminance 0.370; OKLCH L 71.1% C 0.148 H 115.3°. Best body text is #000000 at 8.41:1 contrast (WCAG AA passes).

Color values

HEX#9FAC2A
RGBrgb(159, 172, 42)
HSLhsl(66, 61%, 42%)
HSVhsv(66, 76%, 67%)
CMYKcmyk(7.6%, 0%, 75.6%, 32.5%)
CIE-LABlab(67.31, -20.68, 60.62)
CIE-LCHlch(67.31, 64.05, 108.84°)
OKLaboklab(71.11% -0.0631 0.1334)
OKLCHoklch(71.11% 0.148 115.3)
XYZxyz(29.4693, 37.0436, 7.7878)
Luminance0.3704 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9FAC2A #372AAC
analogous
#AC782A #9FAC2A #5EAC2A
triadic
#9FAC2A #2A9FAC #AC2A9F
tetradic
#9FAC2A #2AAC78 #372AAC #AC2A5E
square
#9FAC2A #2AAC78 #372AAC #AC2A5E
split-complementary
#9FAC2A #2A5EAC #782AAC
monochromatic
#444A12 #727B1E #9FAC2A #C3D142 #D2DD73

Accessibility & contrast

On white

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

On black

8.41
#9FAC2A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9FAC2A
8.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9FAC2A#FFFFFF#000000##000000
##9FAC2A1.002.508.418.41
#FFFFFF2.501.0021.0021.00
#0000008.4121.001.001.00
##0000008.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#B9A30A
Deuteranopia (green-blind)
#B8A535
Tritanopia (blue-blind)
#AAA293
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #9fac2a;
/* rgb */ color: rgb(159, 172, 42);
/* oklch */ color: oklch(71.1% 0.148 115.3);
Tailwind
colors: {
  custom: {
    50: '#bfc46e',
    500: '#9fac2a',
    950: '#000000',
  },
}
SCSS
$custom: #9fac2a;
$custom-light: #bfc46e;
$custom-dark: #000000;
JSON
{
  "hex": "#9fac2a",
  "rgb": {
    "r": 159,
    "g": 172,
    "b": 42
  },
  "hsl": {
    "h": 66,
    "s": 60.748,
    "l": 41.961
  },
  "oklch": {
    "l": 0.71111,
    "c": 0.14754,
    "h": 115.3
  },
  "luminance": 0.37043
}

Semantic roles & 50–950 ramp

primary
#9FAC2A
secondary
#766DC4
accent
#44E454
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131208
muted
#82817B

Preview Lab

Preview with #9FAC2A

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

Preview Lab → · Contrast checker → · Palette generator →

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