#9BAB31#9BAB31

#9BAB31 is a light, vivid yellow. Relative luminance 0.363; OKLCH L 70.6% C 0.144 H 116.7°. Best body text is #000000 at 8.26:1 contrast (WCAG AA passes).

Color values

HEX#9BAB31
RGBrgb(155, 171, 49)
HSLhsl(68, 55%, 43%)
HSVhsv(68, 71%, 67%)
CMYKcmyk(9.4%, 0%, 71.3%, 32.9%)
CIE-LABlab(66.76, -21.54, 57.53)
CIE-LCHlch(66.76, 61.43, 110.52°)
OKLaboklab(70.61% -0.0646 0.1282)
OKLCHoklch(70.61% 0.144 116.7)
XYZxyz(28.6355, 36.3165, 8.4064)
Luminance0.3632 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9BAB31 #4131AB
analogous
#AB7E31 #9BAB31 #5EAB31
triadic
#9BAB31 #319BAB #AB319B
tetradic
#9BAB31 #31AB7E #4131AB #AB315E
square
#9BAB31 #31AB7E #4131AB #AB315E
split-complementary
#9BAB31 #315EAB #7E31AB
monochromatic
#454C16 #707B23 #9BAB31 #BBCC4D #CDDA7D

Accessibility & contrast

On white

2.54
#9BAB31 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.26
#9BAB31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9BAB31
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9BAB31#FFFFFF#000000##000000
##9BAB311.002.548.268.26
#FFFFFF2.541.0021.0021.00
#0000008.2621.001.001.00
##0000008.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#B7A21C
Deuteranopia (green-blind)
#B5A33B
Tritanopia (blue-blind)
#A5A193
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #9bab31;
/* rgb */ color: rgb(155, 171, 49);
/* oklch */ color: oklch(70.6% 0.144 116.7);
Tailwind
colors: {
  custom: {
    50: '#bcc371',
    500: '#9bab31',
    950: '#000000',
  },
}
SCSS
$custom: #9bab31;
$custom-light: #bcc371;
$custom-dark: #000000;
JSON
{
  "hex": "#9bab31",
  "rgb": {
    "r": 155,
    "g": 171,
    "b": 49
  },
  "hsl": {
    "h": 67.869,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.70607,
    "c": 0.14356,
    "h": 116.7
  },
  "luminance": 0.36316
}

Semantic roles & 50–950 ramp

primary
#9BAB31
secondary
#8075C2
accent
#49DF5D
background
#FBFCF7
surface
#F7F8ED
border
#D0D1C8
text
#121208
muted
#81817B

Preview Lab

Preview with #9BAB31

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

Preview Lab → · Contrast checker → · Palette generator →

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