#9BA31A#9BA31A

#9BA31A is a light, vivid yellow. Relative luminance 0.332; OKLCH L 68.6% C 0.147 H 113.3°. Best body text is #000000 at 7.65:1 contrast (WCAG AA passes).

Color values

HEX#9BA31A
RGBrgb(155, 163, 26)
HSLhsl(64, 72%, 37%)
HSVhsv(64, 84%, 64%)
CMYKcmyk(4.9%, 0%, 84%, 36.1%)
CIE-LABlab(64.35, -18.47, 62.51)
CIE-LCHlch(64.35, 65.19, 106.46°)
OKLaboklab(68.64% -0.058 0.1348)
OKLCHoklch(68.64% 0.147 113.3)
XYZxyz(26.8021, 33.2381, 5.9808)
Luminance0.3324 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9BA31A #221AA3
analogous
#A3671A #9BA31A #56A31A
triadic
#9BA31A #1A9BA3 #A31A9B
tetradic
#9BA31A #1AA367 #221AA3 #A31A56
square
#9BA31A #1AA367 #221AA3 #A31A56
split-complementary
#9BA31A #1A56A3 #671AA3
monochromatic
#373909 #696E12 #9BA31A #CDD822 #DBE454

Accessibility & contrast

On white

2.75
#9BA31A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.65
#9BA31A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9BA31A
7.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9BA31A#FFFFFF#000000##000000
##9BA31A1.002.757.657.65
#FFFFFF2.751.0021.0021.00
#0000007.6521.001.001.00
##0000007.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#B09B00
Deuteranopia (green-blind)
#B09D29
Tritanopia (blue-blind)
#A6998B
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #9ba31a;
/* rgb */ color: rgb(155, 163, 26);
/* oklch */ color: oklch(68.6% 0.147 113.3);
Tailwind
colors: {
  custom: {
    50: '#bcbe66',
    500: '#9ba31a',
    950: '#000000',
  },
}
SCSS
$custom: #9ba31a;
$custom-light: #bcbe66;
$custom-dark: #000000;
JSON
{
  "hex": "#9ba31a",
  "rgb": {
    "r": 155,
    "g": 163,
    "b": 26
  },
  "hsl": {
    "h": 63.504,
    "s": 72.487,
    "l": 37.059
  },
  "oklch": {
    "l": 0.68639,
    "c": 0.14669,
    "h": 113.3
  },
  "luminance": 0.33238
}

Semantic roles & 50–950 ramp

primary
#9BA31A
secondary
#5952C7
accent
#39EF43
background
#FCFBF6
surface
#F8F6EB
border
#D1D0C6
text
#121207
muted
#81817A

Preview Lab

Preview with #9BA31A

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

Preview Lab → · Contrast checker → · Palette generator →

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