#9FAF2A#9FAF2A

#9FAF2A is a light, vivid yellow. Relative luminance 0.382; OKLCH L 71.8% C 0.151 H 116.5°. Best body text is #000000 at 8.64:1 contrast (WCAG AA passes).

Color values

HEX#9FAF2A
RGBrgb(159, 175, 42)
HSLhsl(67, 61%, 43%)
HSVhsv(67, 76%, 69%)
CMYKcmyk(9.1%, 0%, 76%, 31.4%)
CIE-LABlab(68.17, -22.18, 61.42)
CIE-LCHlch(68.17, 65.30, 109.85°)
OKLaboklab(71.8% -0.0672 0.1351)
OKLCHoklch(71.8% 0.151 116.5)
XYZxyz(30.0468, 38.1985, 7.9802)
Luminance0.3820 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9FAF2A #3A2AAF
analogous
#AF7C2A #9FAF2A #5DAF2A
triadic
#9FAF2A #2A9FAF #AF2A9F
tetradic
#9FAF2A #2AAF7C #3A2AAF #AF2A5D
square
#9FAF2A #2AAF7C #3A2AAF #AF2A5D
split-complementary
#9FAF2A #2A5DAF #7C2AAF
monochromatic
#454C12 #727E1E #9FAF2A #C1D244 #D1DE75

Accessibility & contrast

On white

2.43
#9FAF2A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.64
#9FAF2A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9FAF2A
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9FAF2A#FFFFFF#000000##000000
##9FAF2A1.002.438.648.64
#FFFFFF2.431.0021.0021.00
#0000008.6421.001.001.00
##0000008.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#BBA608
Deuteranopia (green-blind)
#BAA736
Tritanopia (blue-blind)
#A9A596
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #9faf2a;
/* rgb */ color: rgb(159, 175, 42);
/* oklch */ color: oklch(71.8% 0.151 116.5);
Tailwind
colors: {
  custom: {
    50: '#bfc66e',
    500: '#9faf2a',
    950: '#000000',
  },
}
SCSS
$custom: #9faf2a;
$custom-light: #bfc66e;
$custom-dark: #000000;
JSON
{
  "hex": "#9faf2a",
  "rgb": {
    "r": 159,
    "g": 175,
    "b": 42
  },
  "hsl": {
    "h": 67.218,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.71799,
    "c": 0.15086,
    "h": 116.5
  },
  "luminance": 0.38198
}

Semantic roles & 50–950 ramp

primary
#9FAF2A
secondary
#7A6FC6
accent
#43E457
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131308
muted
#82827B

Preview Lab

Preview with #9FAF2A

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

Preview Lab → · Contrast checker → · Palette generator →

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