#9FBF31#9FBF31

#9FBF31 is a light, vivid yellow-green. Relative luminance 0.449; OKLCH L 75.5% C 0.165 H 121.8°. Best body text is #000000 at 9.97:1 contrast (WCAG AA passes).

Color values

HEX#9FBF31
RGBrgb(159, 191, 49)
HSLhsl(74, 59%, 47%)
HSVhsv(74, 74%, 75%)
CMYKcmyk(16.8%, 0%, 74.3%, 25.1%)
CIE-LABlab(72.80, -29.61, 63.47)
CIE-LCHlch(72.80, 70.04, 115.01°)
OKLaboklab(75.54% -0.0871 0.1406)
OKLCHoklch(75.54% 0.165 121.8)
XYZxyz(33.4838, 44.8542, 9.7989)
Luminance0.4485 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9FBF31 #5131BF
analogous
#BF9831 #9FBF31 #58BF31
triadic
#9FBF31 #319FBF #BF319F
tetradic
#9FBF31 #31BF98 #5131BF #BF3158
square
#9FBF31 #31BF98 #5131BF #BF3158
split-complementary
#9FBF31 #3158BF #9831BF
monochromatic
#4E5E18 #768E25 #9FBF31 #B9D459 #CDE18A

Accessibility & contrast

On white

2.11
#9FBF31 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.97
#9FBF31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9FBF31
9.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9FBF31#FFFFFF#000000##000000
##9FBF311.002.119.979.97
#FFFFFF2.111.0021.0021.00
#0000009.9721.001.001.00
##0000009.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#CBB312
Deuteranopia (green-blind)
#C7B33E
Tritanopia (blue-blind)
#A8B5A4
Achromatopsia (no color)
#B3B3B3

Design tokens & code

CSS
--color: #9fbf31;
/* rgb */ color: rgb(159, 191, 49);
/* oklch */ color: oklch(75.5% 0.165 121.8);
Tailwind
colors: {
  custom: {
    50: '#bfd274',
    500: '#9fbf31',
    950: '#000000',
  },
}
SCSS
$custom: #9fbf31;
$custom-light: #bfd274;
$custom-dark: #000000;
JSON
{
  "hex": "#9fbf31",
  "rgb": {
    "r": 159,
    "g": 191,
    "b": 49
  },
  "hsl": {
    "h": 73.521,
    "s": 59.167,
    "l": 47.059
  },
  "oklch": {
    "l": 0.75539,
    "c": 0.16539,
    "h": 121.8
  },
  "luminance": 0.44854
}

Semantic roles & 50–950 ramp

primary
#9FBF31
secondary
#9281CB
accent
#45E269
background
#FCFCF7
surface
#F8F9ED
border
#D1D2C8
text
#131409
muted
#82827B

Preview Lab

Preview with #9FBF31

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

Preview Lab → · Contrast checker → · Palette generator →

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