#9BB221#9BB221

#9BB221 is a light, vivid yellow. Relative luminance 0.389; OKLCH L 72.1% C 0.160 H 118.9°. Best body text is #000000 at 8.78:1 contrast (WCAG AA passes).

Color values

HEX#9BB221
RGBrgb(155, 178, 33)
HSLhsl(70, 69%, 41%)
HSVhsv(70, 81%, 70%)
CMYKcmyk(12.9%, 0%, 81.5%, 30.2%)
CIE-LABlab(68.69, -25.71, 64.46)
CIE-LCHlch(68.69, 69.40, 111.75°)
OKLaboklab(72.14% -0.0774 0.1401)
OKLCHoklch(72.14% 0.16 118.9)
XYZxyz(29.7132, 38.9194, 7.3854)
Luminance0.3892 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9BB221 #3821B2
analogous
#B28121 #9BB221 #53B221
triadic
#9BB221 #219BB2 #B2219B
tetradic
#9BB221 #21B281 #3821B2 #B22153
square
#9BB221 #21B281 #3821B2 #B22153
split-complementary
#9BB221 #2153B2 #8121B2
monochromatic
#414B0E #6E7E17 #9BB221 #C0DA36 #D0E36A

Accessibility & contrast

On white

2.39
#9BB221 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.78
#9BB221 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9BB221
8.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9BB221#FFFFFF#000000##000000
##9BB2211.002.398.788.78
#FFFFFF2.391.0021.0021.00
#0000008.7821.001.001.00
##0000008.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#BEA800
Deuteranopia (green-blind)
#BCA830
Tritanopia (blue-blind)
#A5A898
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #9bb221;
/* rgb */ color: rgb(155, 178, 33);
/* oklch */ color: oklch(72.1% 0.160 118.9);
Tailwind
colors: {
  custom: {
    50: '#bcc96b',
    500: '#9bb221',
    950: '#000000',
  },
}
SCSS
$custom: #9bb221;
$custom-light: #bcc96b;
$custom-dark: #000000;
JSON
{
  "hex": "#9bb221",
  "rgb": {
    "r": 155,
    "g": 178,
    "b": 33
  },
  "hsl": {
    "h": 69.517,
    "s": 68.72,
    "l": 41.373
  },
  "oklch": {
    "l": 0.72135,
    "c": 0.16007,
    "h": 118.9
  },
  "luminance": 0.38919
}

Semantic roles & 50–950 ramp

primary
#9BB221
secondary
#7566C9
accent
#3CEC58
background
#FCFCF6
surface
#F8F8EC
border
#D1D1C7
text
#121307
muted
#81827A

Preview Lab

Preview with #9BB221

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

Preview Lab → · Contrast checker → · Palette generator →

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