#9FAF2F#9FAF2F

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

Color values

HEX#9FAF2F
RGBrgb(159, 175, 47)
HSLhsl(68, 58%, 44%)
HSVhsv(68, 73%, 69%)
CMYKcmyk(9.1%, 0%, 73.1%, 31.4%)
CIE-LABlab(68.19, -21.94, 59.75)
CIE-LCHlch(68.19, 63.65, 110.16°)
OKLaboklab(71.83% -0.0661 0.1324)
OKLCHoklch(71.83% 0.148 116.5)
XYZxyz(30.1419, 38.2365, 8.4813)
Luminance0.3824 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9FAF2F #3F2FAF
analogous
#AF7F2F #9FAF2F #5FAF2F
triadic
#9FAF2F #2F9FAF #AF2F9F
tetradic
#9FAF2F #2FAF7F #3F2FAF #AF2F5F
square
#9FAF2F #2FAF7F #3F2FAF #AF2F5F
split-complementary
#9FAF2F #2F5FAF #7F2FAF
monochromatic
#474F15 #737F22 #9FAF2F #BFCF4C #D0DC7C

Accessibility & contrast

On white

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

On black

8.65
#9FAF2F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9FAF2F
8.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9FAF2F#FFFFFF#000000##000000
##9FAF2F1.002.438.658.65
#FFFFFF2.431.0021.0021.00
#0000008.6521.001.001.00
##0000008.6521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9faf2f;
/* rgb */ color: rgb(159, 175, 47);
/* oklch */ color: oklch(71.8% 0.148 116.5);
Tailwind
colors: {
  custom: {
    50: '#bfc671',
    500: '#9faf2f',
    950: '#000000',
  },
}
SCSS
$custom: #9faf2f;
$custom-light: #bfc671;
$custom-dark: #000000;
JSON
{
  "hex": "#9faf2f",
  "rgb": {
    "r": 159,
    "g": 175,
    "b": 47
  },
  "hsl": {
    "h": 67.5,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.7183,
    "c": 0.14801,
    "h": 116.5
  },
  "luminance": 0.38236
}

Semantic roles & 50–950 ramp

primary
#9FAF2F
secondary
#7F75C4
accent
#47E15A
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131308
muted
#82827B

Preview Lab

Preview with #9FAF2F

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

Preview Lab → · Contrast checker → · Palette generator →

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