#9FA72F#9FA72F

#9FA72F is a light, vivid yellow. Relative luminance 0.352; OKLCH L 70.0% C 0.139 H 113.3°. Best body text is #000000 at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#9FA72F
RGBrgb(159, 167, 47)
HSLhsl(64, 56%, 42%)
HSVhsv(64, 72%, 65%)
CMYKcmyk(4.8%, 0%, 71.9%, 34.5%)
CIE-LABlab(65.92, -17.91, 57.54)
CIE-LCHlch(65.92, 60.27, 107.29°)
OKLaboklab(70% -0.0549 0.1278)
OKLCHoklch(70% 0.139 113.3)
XYZxyz(28.6307, 35.2142, 7.9776)
Luminance0.3521 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9FA72F #372FA7
analogous
#A7732F #9FA72F #63A72F
triadic
#9FA72F #2F9FA7 #A72F9F
tetradic
#9FA72F #2FA773 #372FA7 #A72F63
square
#9FA72F #2FA773 #372FA7 #A72F63
split-complementary
#9FA72F #2F63A7 #732FA7
monochromatic
#444714 #727722 #9FA72F #C3CB48 #D2D978

Accessibility & contrast

On white

2.61
#9FA72F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.04
#9FA72F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9FA72F
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9FA72F#FFFFFF#000000##000000
##9FA72F1.002.618.048.04
#FFFFFF2.611.0021.0021.00
#0000008.0421.001.001.00
##0000008.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#B49F19
Deuteranopia (green-blind)
#B3A138
Tritanopia (blue-blind)
#AA9D90
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #9fa72f;
/* rgb */ color: rgb(159, 167, 47);
/* oklch */ color: oklch(70.0% 0.139 113.3);
Tailwind
colors: {
  custom: {
    50: '#bfc170',
    500: '#9fa72f',
    950: '#000000',
  },
}
SCSS
$custom: #9fa72f;
$custom-light: #bfc170;
$custom-dark: #000000;
JSON
{
  "hex": "#9fa72f",
  "rgb": {
    "r": 159,
    "g": 167,
    "b": 47
  },
  "hsl": {
    "h": 64,
    "s": 56.075,
    "l": 41.961
  },
  "oklch": {
    "l": 0.70002,
    "c": 0.13907,
    "h": 113.3
  },
  "luminance": 0.35214
}

Semantic roles & 50–950 ramp

primary
#9FA72F
secondary
#7671C1
accent
#48DF52
background
#FCFBF7
surface
#F8F7ED
border
#D1D0C8
text
#131208
muted
#82817B

Preview Lab

Preview with #9FA72F

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

Preview Lab → · Contrast checker → · Palette generator →

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