#9FBA31#9FBA31

#9FBA31 is a light, vivid yellow-green. Relative luminance 0.427; OKLCH L 74.4% C 0.160 H 120.3°. Best body text is #000000 at 9.54:1 contrast (WCAG AA passes).

Color values

HEX#9FBA31
RGBrgb(159, 186, 49)
HSLhsl(72, 58%, 46%)
HSVhsv(72, 74%, 73%)
CMYKcmyk(14.5%, 0%, 73.7%, 27.1%)
CIE-LABlab(71.36, -27.22, 62.09)
CIE-LCHlch(71.36, 67.80, 113.67°)
OKLaboklab(74.38% -0.0805 0.1377)
OKLCHoklch(74.38% 0.16 120.3)
XYZxyz(32.4119, 42.7106, 9.4416)
Luminance0.4271 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9FBA31 #4C31BA
analogous
#BA9031 #9FBA31 #5ABA31
triadic
#9FBA31 #319FBA #BA319F
tetradic
#9FBA31 #31BA90 #4C31BA #BA315A
square
#9FBA31 #31BA90 #4C31BA #BA315A
split-complementary
#9FBA31 #315ABA #9031BA
monochromatic
#4C5917 #768A24 #9FBA31 #BAD256 #CEDF86

Accessibility & contrast

On white

2.20
#9FBA31 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.54
#9FBA31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9FBA31
9.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9FBA31#FFFFFF#000000##000000
##9FBA311.002.209.549.54
#FFFFFF2.201.0021.0021.00
#0000009.5421.001.001.00
##0000009.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#C6AF15
Deuteranopia (green-blind)
#C3AF3D
Tritanopia (blue-blind)
#A8B0A0
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #9fba31;
/* rgb */ color: rgb(159, 186, 49);
/* oklch */ color: oklch(74.4% 0.160 120.3);
Tailwind
colors: {
  custom: {
    50: '#bfce73',
    500: '#9fba31',
    950: '#000000',
  },
}
SCSS
$custom: #9fba31;
$custom-light: #bfce73;
$custom-dark: #000000;
JSON
{
  "hex": "#9fba31",
  "rgb": {
    "r": 159,
    "g": 186,
    "b": 49
  },
  "hsl": {
    "h": 71.825,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.74379,
    "c": 0.15952,
    "h": 120.3
  },
  "luminance": 0.4271
}

Semantic roles & 50–950 ramp

primary
#9FBA31
secondary
#8D7EC9
accent
#46E265
background
#FCFCF7
surface
#F8F9ED
border
#D1D2C8
text
#131309
muted
#82827B

Preview Lab

Preview with #9FBA31

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

Preview Lab → · Contrast checker → · Palette generator →

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