#9BA11C#9BA11C

#9BA11C 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#9BA11C
RGBrgb(155, 161, 28)
HSLhsl(63, 70%, 37%)
HSVhsv(63, 83%, 63%)
CMYKcmyk(3.7%, 0%, 82.6%, 36.9%)
CIE-LABlab(63.79, -17.39, 61.52)
CIE-LCHlch(63.79, 63.93, 105.78°)
OKLaboklab(68.19% -0.0548 0.133)
OKLCHoklch(68.19% 0.144 112.4)
XYZxyz(26.4730, 32.5428, 5.9852)
Luminance0.3254 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9BA11C #221CA1
analogous
#A1651C #9BA11C #58A11C
triadic
#9BA11C #1C9BA1 #A11C9B
tetradic
#9BA11C #1CA165 #221CA1 #A11C58
square
#9BA11C #1CA165 #221CA1 #A11C58
split-complementary
#9BA11C #1C58A1 #651CA1
monochromatic
#37390A #696D13 #9BA11C #CDD525 #DBE256

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9BA11C#FFFFFF#000000##000000
##9BA11C1.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)
#AE9C2A
Tritanopia (blue-blind)
#A69789
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #9ba11c;
/* rgb */ color: rgb(155, 161, 28);
/* oklch */ color: oklch(68.2% 0.144 112.4);
Tailwind
colors: {
  custom: {
    50: '#bcbc67',
    500: '#9ba11c',
    950: '#000000',
  },
}
SCSS
$custom: #9ba11c;
$custom-light: #bcbc67;
$custom-dark: #000000;
JSON
{
  "hex": "#9ba11c",
  "rgb": {
    "r": 155,
    "g": 161,
    "b": 28
  },
  "hsl": {
    "h": 62.707,
    "s": 70.37,
    "l": 37.059
  },
  "oklch": {
    "l": 0.68189,
    "c": 0.14382,
    "h": 112.4
  },
  "luminance": 0.32542
}

Semantic roles & 50–950 ramp

primary
#9BA11C
secondary
#5954C5
accent
#3BED43
background
#FCFBF6
surface
#F8F6EB
border
#D1D0C6
text
#121207
muted
#81817A

Preview Lab

Preview with #9BA11C

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

Preview Lab → · Contrast checker → · Palette generator →

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