#9BA81F#9BA81F

#9BA81F is a light, vivid yellow. Relative luminance 0.351; OKLCH L 69.8% C 0.150 H 115.3°. Best body text is #000000 at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#9BA81F
RGBrgb(155, 168, 31)
HSLhsl(66, 69%, 39%)
HSVhsv(66, 82%, 66%)
CMYKcmyk(7.7%, 0%, 81.5%, 34.1%)
CIE-LABlab(65.81, -20.84, 62.47)
CIE-LCHlch(65.81, 65.85, 108.45°)
OKLaboklab(69.81% -0.0641 0.1355)
OKLCHoklch(69.81% 0.15 115.3)
XYZxyz(27.7684, 35.0732, 6.6031)
Luminance0.3507 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9BA81F #2C1FA8
analogous
#A8711F #9BA81F #57A81F
triadic
#9BA81F #1F9BA8 #A81F9B
tetradic
#9BA81F #1FA871 #2C1FA8 #A81F57
square
#9BA81F #1FA871 #2C1FA8 #A81F57
split-complementary
#9BA81F #1F57A8 #711FA8
monochromatic
#3C410C #6B7415 #9BA81F #C8D82C #D5E260

Accessibility & contrast

On white

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

On black

8.01
#9BA81F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9BA81F
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9BA81F#FFFFFF#000000##000000
##9BA81F1.002.628.018.01
#FFFFFF2.621.0021.0021.00
#0000008.0121.001.001.00
##0000008.0121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9ba81f;
/* rgb */ color: rgb(155, 168, 31);
/* oklch */ color: oklch(69.8% 0.150 115.3);
Tailwind
colors: {
  custom: {
    50: '#bcc169',
    500: '#9ba81f',
    950: '#000000',
  },
}
SCSS
$custom: #9ba81f;
$custom-light: #bcc169;
$custom-dark: #000000;
JSON
{
  "hex": "#9ba81f",
  "rgb": {
    "r": 155,
    "g": 168,
    "b": 31
  },
  "hsl": {
    "h": 65.693,
    "s": 68.844,
    "l": 39.02
  },
  "oklch": {
    "l": 0.6981,
    "c": 0.14993,
    "h": 115.3
  },
  "luminance": 0.35073
}

Semantic roles & 50–950 ramp

primary
#9BA81F
secondary
#675DC6
accent
#3CEC4D
background
#FCFBF6
surface
#F8F7EB
border
#D1D0C6
text
#121207
muted
#81817A

Preview Lab

Preview with #9BA81F

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

Preview Lab → · Contrast checker → · Palette generator →

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