#9FB31F#9FB31F

#9FB31F is a light, vivid yellow. Relative luminance 0.397; OKLCH L 72.7% C 0.160 H 117.7°. Best body text is #000000 at 8.94:1 contrast (WCAG AA passes).

Color values

HEX#9FB31F
RGBrgb(159, 179, 31)
HSLhsl(68, 70%, 41%)
HSVhsv(68, 83%, 70%)
CMYKcmyk(11.2%, 0%, 82.7%, 29.8%)
CIE-LABlab(69.26, -24.58, 65.59)
CIE-LCHlch(69.26, 70.04, 110.54°)
OKLaboklab(72.66% -0.0746 0.1421)
OKLCHoklch(72.66% 0.16 117.7)
XYZxyz(30.6663, 39.7104, 7.3454)
Luminance0.3971 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9FB31F #331FB3
analogous
#B37D1F #9FB31F #55B31F
triadic
#9FB31F #1F9FB3 #B31F9F
tetradic
#9FB31F #1FB37D #331FB3 #B31F55
square
#9FB31F #1FB37D #331FB3 #B31F55
split-complementary
#9FB31F #1F55B3 #7D1FB3
monochromatic
#424B0D #717F16 #9FB31F #C5DC33 #D4E568

Accessibility & contrast

On white

2.35
#9FB31F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.94
#9FB31F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9FB31F
8.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9FB31F#FFFFFF#000000##000000
##9FB31F1.002.358.948.94
#FFFFFF2.351.0021.0021.00
#0000008.9421.001.001.00
##0000008.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#C0A900
Deuteranopia (green-blind)
#BEAA2F
Tritanopia (blue-blind)
#A9A999
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #9fb31f;
/* rgb */ color: rgb(159, 179, 31);
/* oklch */ color: oklch(72.7% 0.160 117.7);
Tailwind
colors: {
  custom: {
    50: '#bfc96a',
    500: '#9fb31f',
    950: '#000000',
  },
}
SCSS
$custom: #9fb31f;
$custom-light: #bfc96a;
$custom-dark: #000000;
JSON
{
  "hex": "#9fb31f",
  "rgb": {
    "r": 159,
    "g": 179,
    "b": 31
  },
  "hsl": {
    "h": 68.108,
    "s": 70.476,
    "l": 41.176
  },
  "oklch": {
    "l": 0.72664,
    "c": 0.16047,
    "h": 117.7
  },
  "luminance": 0.3971
}

Semantic roles & 50–950 ramp

primary
#9FB31F
secondary
#7164CA
accent
#3BED53
background
#FCFCF6
surface
#F8F8EC
border
#D1D1C7
text
#131307
muted
#82827A

Preview Lab

Preview with #9FB31F

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

Preview Lab → · Contrast checker → · Palette generator →

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