#9BA11B#9BA11B

#9BA11B is a light, vivid yellow. Relative luminance 0.325; OKLCH L 68.2% C 0.144 H 112.4°. Best body text is #000000 at 7.51:1 contrast (WCAG AA passes).

Color values

HEX#9BA11B
RGBrgb(155, 161, 27)
HSLhsl(63, 71%, 37%)
HSVhsv(63, 83%, 63%)
CMYKcmyk(3.7%, 0%, 83.2%, 36.9%)
CIE-LABlab(63.79, -17.42, 61.78)
CIE-LCHlch(63.79, 64.19, 105.75°)
OKLaboklab(68.19% -0.055 0.1333)
OKLCHoklch(68.19% 0.144 112.4)
XYZxyz(26.4612, 32.5381, 5.9233)
Luminance0.3254 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9BA11B #211BA1
analogous
#A1641B #9BA11B #58A11B
triadic
#9BA11B #1B9BA1 #A11B9B
tetradic
#9BA11B #1BA164 #211BA1 #A11B58
square
#9BA11B #1BA164 #211BA1 #A11B58
split-complementary
#9BA11B #1B58A1 #641BA1
monochromatic
#363809 #696D12 #9BA11B #CDD524 #DCE254

Accessibility & contrast

On white

2.80
#9BA11B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.51
#9BA11B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9BA11B
7.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9BA11B#FFFFFF#000000##000000
##9BA11B1.002.807.517.51
#FFFFFF2.801.0021.0021.00
#0000007.5121.001.001.00
##0000007.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#AE9900
Deuteranopia (green-blind)
#AE9C29
Tritanopia (blue-blind)
#A69789
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #9ba11b;
/* rgb */ color: rgb(155, 161, 27);
/* oklch */ color: oklch(68.2% 0.144 112.4);
Tailwind
colors: {
  custom: {
    50: '#bcbc66',
    500: '#9ba11b',
    950: '#000000',
  },
}
SCSS
$custom: #9ba11b;
$custom-light: #bcbc66;
$custom-dark: #000000;
JSON
{
  "hex": "#9ba11b",
  "rgb": {
    "r": 155,
    "g": 161,
    "b": 27
  },
  "hsl": {
    "h": 62.687,
    "s": 71.277,
    "l": 36.863
  },
  "oklch": {
    "l": 0.68185,
    "c": 0.14422,
    "h": 112.4
  },
  "luminance": 0.32537
}

Semantic roles & 50–950 ramp

primary
#9BA11B
secondary
#5852C5
accent
#3AEE42
background
#FCFBF6
surface
#F8F6EB
border
#D1D0C6
text
#121207
muted
#81817A

Preview Lab

Preview with #9BA11B

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

Preview Lab → · Contrast checker → · Palette generator →

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