#9FA71F#9FA71F

#9FA71F is a light, vivid yellow. Relative luminance 0.351; OKLCH L 69.9% C 0.148 H 113.2°. Best body text is #000000 at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#9FA71F
RGBrgb(159, 167, 31)
HSLhsl(64, 69%, 39%)
HSVhsv(64, 81%, 65%)
CMYKcmyk(4.8%, 0%, 81.4%, 34.5%)
CIE-LABlab(65.83, -18.59, 62.61)
CIE-LCHlch(65.83, 65.31, 106.54°)
OKLaboklab(69.91% -0.0582 0.1357)
OKLCHoklch(69.91% 0.148 113.2)
XYZxyz(28.3651, 35.1079, 6.5784)
Luminance0.3511 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9FA71F #271FA7
analogous
#A76B1F #9FA71F #5BA71F
triadic
#9FA71F #1F9FA7 #A71F9F
tetradic
#9FA71F #1FA76B #271FA7 #A71F5B
square
#9FA71F #1FA76B #271FA7 #A71F5B
split-complementary
#9FA71F #1F5BA7 #6B1FA7
monochromatic
#3D400C #6E7315 #9FA71F #CED82B #DAE15F

Accessibility & contrast

On white

2.62
#9FA71F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.02
#9FA71F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9FA71F
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9FA71F#FFFFFF#000000##000000
##9FA71F1.002.628.028.02
#FFFFFF2.621.0021.0021.00
#0000008.0221.001.001.00
##0000008.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#B49F00
Deuteranopia (green-blind)
#B4A12D
Tritanopia (blue-blind)
#AA9C8F
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #9fa71f;
/* rgb */ color: rgb(159, 167, 31);
/* oklch */ color: oklch(69.9% 0.148 113.2);
Tailwind
colors: {
  custom: {
    50: '#bfc069',
    500: '#9fa71f',
    950: '#000000',
  },
}
SCSS
$custom: #9fa71f;
$custom-light: #bfc069;
$custom-dark: #000000;
JSON
{
  "hex": "#9fa71f",
  "rgb": {
    "r": 159,
    "g": 167,
    "b": 31
  },
  "hsl": {
    "h": 63.529,
    "s": 68.687,
    "l": 38.824
  },
  "oklch": {
    "l": 0.69909,
    "c": 0.1476,
    "h": 113.2
  },
  "luminance": 0.35107
}

Semantic roles & 50–950 ramp

primary
#9FA71F
secondary
#625CC6
accent
#3CEC47
background
#FCFBF6
surface
#F8F7EB
border
#D1D0C6
text
#131207
muted
#82817A

Preview Lab

Preview with #9FA71F

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

Preview Lab → · Contrast checker → · Palette generator →

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