#9BA71F#9BA71F

#9BA71F is a light, vivid yellow. Relative luminance 0.347; OKLCH L 69.6% C 0.149 H 114.9°. Best body text is #000000 at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#9BA71F
RGBrgb(155, 167, 31)
HSLhsl(65, 69%, 39%)
HSVhsv(65, 81%, 65%)
CMYKcmyk(7.2%, 0%, 81.4%, 34.5%)
CIE-LABlab(65.52, -20.34, 62.22)
CIE-LCHlch(65.52, 65.46, 108.10°)
OKLaboklab(69.58% -0.0628 0.135)
OKLCHoklch(69.58% 0.149 114.9)
XYZxyz(27.5844, 34.7054, 6.5418)
Luminance0.3471 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9BA71F #2B1FA7
analogous
#A76F1F #9BA71F #57A71F
triadic
#9BA71F #1F9BA7 #A71F9B
tetradic
#9BA71F #1FA76F #2B1FA7 #A71F57
square
#9BA71F #1FA76F #2B1FA7 #A71F57
split-complementary
#9BA71F #1F57A7 #6F1FA7
monochromatic
#3B400C #6B7315 #9BA71F #C9D82B #D6E15F

Accessibility & contrast

On white

2.64
#9BA71F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.94
#9BA71F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9BA71F
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9BA71F#FFFFFF#000000##000000
##9BA71F1.002.647.947.94
#FFFFFF2.641.0021.0021.00
#0000007.9421.001.001.00
##0000007.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#B49E00
Deuteranopia (green-blind)
#B3A02D
Tritanopia (blue-blind)
#A69D8F
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #9ba71f;
/* rgb */ color: rgb(155, 167, 31);
/* oklch */ color: oklch(69.6% 0.149 114.9);
Tailwind
colors: {
  custom: {
    50: '#bcc169',
    500: '#9ba71f',
    950: '#000000',
  },
}
SCSS
$custom: #9ba71f;
$custom-light: #bcc169;
$custom-dark: #000000;
JSON
{
  "hex": "#9ba71f",
  "rgb": {
    "r": 155,
    "g": 167,
    "b": 31
  },
  "hsl": {
    "h": 65.294,
    "s": 68.687,
    "l": 38.824
  },
  "oklch": {
    "l": 0.6958,
    "c": 0.14886,
    "h": 114.9
  },
  "luminance": 0.34705
}

Semantic roles & 50–950 ramp

primary
#9BA71F
secondary
#655CC6
accent
#3CEC4C
background
#FCFBF6
surface
#F8F7EB
border
#D1D0C6
text
#121207
muted
#81817A

Preview Lab

Preview with #9BA71F

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

Preview Lab → · Contrast checker → · Palette generator →

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