#9BA71B#9BA71B

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

Color values

HEX#9BA71B
RGBrgb(155, 167, 27)
HSLhsl(65, 72%, 38%)
HSVhsv(65, 84%, 65%)
CMYKcmyk(7.2%, 0%, 83.8%, 34.5%)
CIE-LABlab(65.50, -20.47, 63.24)
CIE-LCHlch(65.50, 66.47, 107.93°)
OKLaboklab(69.56% -0.0634 0.1365)
OKLCHoklch(69.56% 0.151 114.9)
XYZxyz(27.5350, 34.6856, 6.2812)
Luminance0.3468 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9BA71B #271BA7
analogous
#A76D1B #9BA71B #55A71B
triadic
#9BA71B #1B9BA7 #A71B9B
tetradic
#9BA71B #1BA76D #271BA7 #A71B55
square
#9BA71B #1BA76D #271BA7 #A71B55
split-complementary
#9BA71B #1B55A7 #6D1BA7
monochromatic
#393E0A #6A7212 #9BA71B #CCDC24 #D8E458

Accessibility & contrast

On white

2.65
#9BA71B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##9BA71B#FFFFFF#000000##000000
##9BA71B1.002.657.947.94
#FFFFFF2.651.0021.0021.00
#0000007.9421.001.001.00
##0000007.9421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9ba71b;
/* rgb */ color: rgb(155, 167, 27);
/* oklch */ color: oklch(69.6% 0.150 114.9);
Tailwind
colors: {
  custom: {
    50: '#bcc167',
    500: '#9ba71b',
    950: '#000000',
  },
}
SCSS
$custom: #9ba71b;
$custom-light: #bcc167;
$custom-dark: #000000;
JSON
{
  "hex": "#9ba71b",
  "rgb": {
    "r": 155,
    "g": 167,
    "b": 27
  },
  "hsl": {
    "h": 65.143,
    "s": 72.165,
    "l": 38.039
  },
  "oklch": {
    "l": 0.69562,
    "c": 0.1505,
    "h": 114.9
  },
  "luminance": 0.34685
}

Semantic roles & 50–950 ramp

primary
#9BA71B
secondary
#6056C8
accent
#39EF49
background
#FCFBF6
surface
#F8F7EB
border
#D1D0C6
text
#121207
muted
#81817A

Preview Lab

Preview with #9BA71B

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

Preview Lab → · Contrast checker → · Palette generator →

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