#9BAA21#9BAA21

#9BAA21 is a light, vivid yellow. Relative luminance 0.358; OKLCH L 70.3% C 0.151 H 116.1°. Best body text is #000000 at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#9BAA21
RGBrgb(155, 170, 33)
HSLhsl(67, 67%, 40%)
HSVhsv(67, 81%, 67%)
CMYKcmyk(8.8%, 0%, 80.6%, 33.3%)
CIE-LABlab(66.39, -21.77, 62.43)
CIE-LCHlch(66.39, 66.11, 109.22°)
OKLaboklab(70.28% -0.0666 0.1358)
OKLCHoklch(70.28% 0.151 116.1)
XYZxyz(28.1676, 35.8282, 6.8702)
Luminance0.3583 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9BAA21 #3021AA
analogous
#AA7421 #9BAA21 #57AA21
triadic
#9BAA21 #219BAA #AA219B
tetradic
#9BAA21 #21AA74 #3021AA #AA2157
square
#9BAA21 #21AA74 #3021AA #AA2157
split-complementary
#9BAA21 #2157AA #7421AA
monochromatic
#3E430D #6C7717 #9BAA21 #C5D731 #D3E164

Accessibility & contrast

On white

2.57
#9BAA21 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.17
#9BAA21 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9BAA21
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9BAA21#FFFFFF#000000##000000
##9BAA211.002.578.178.17
#FFFFFF2.571.0021.0021.00
#0000008.1721.001.001.00
##0000008.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#B6A100
Deuteranopia (green-blind)
#B5A22F
Tritanopia (blue-blind)
#A5A091
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #9baa21;
/* rgb */ color: rgb(155, 170, 33);
/* oklch */ color: oklch(70.3% 0.151 116.1);
Tailwind
colors: {
  custom: {
    50: '#bcc36a',
    500: '#9baa21',
    950: '#000000',
  },
}
SCSS
$custom: #9baa21;
$custom-light: #bcc36a;
$custom-dark: #000000;
JSON
{
  "hex": "#9baa21",
  "rgb": {
    "r": 155,
    "g": 170,
    "b": 33
  },
  "hsl": {
    "h": 66.569,
    "s": 67.488,
    "l": 39.804
  },
  "oklch": {
    "l": 0.70281,
    "c": 0.15122,
    "h": 116.1
  },
  "luminance": 0.35828
}

Semantic roles & 50–950 ramp

primary
#9BAA21
secondary
#6C61C6
accent
#3DEA50
background
#FCFBF6
surface
#F8F7EC
border
#D1D0C7
text
#121207
muted
#81817A

Preview Lab

Preview with #9BAA21

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

Preview Lab → · Contrast checker → · Palette generator →

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