#9CB221#9CB221

#9CB221 is a light, vivid yellow. Relative luminance 0.390; OKLCH L 72.2% C 0.160 H 118.5°. Best body text is #000000 at 8.80:1 contrast (WCAG AA passes).

Color values

HEX#9CB221
RGBrgb(156, 178, 33)
HSLhsl(69, 69%, 41%)
HSVhsv(69, 81%, 70%)
CMYKcmyk(12.4%, 0%, 81.5%, 30.2%)
CIE-LABlab(68.76, -25.29, 64.55)
CIE-LCHlch(68.76, 69.33, 111.39°)
OKLaboklab(72.21% -0.0763 0.1403)
OKLCHoklch(72.21% 0.16 118.5)
XYZxyz(29.9059, 39.0188, 7.3945)
Luminance0.3902 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9CB221 #3721B2
analogous
#B28021 #9CB221 #54B221
triadic
#9CB221 #219CB2 #B2219C
tetradic
#9CB221 #21B280 #3721B2 #B22154
square
#9CB221 #21B280 #3721B2 #B22154
split-complementary
#9CB221 #2154B2 #8021B2
monochromatic
#424B0E #6F7E17 #9CB221 #C1DA36 #D1E36A

Accessibility & contrast

On white

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

On black

8.80
#9CB221 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9CB221
8.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9CB221#FFFFFF#000000##000000
##9CB2211.002.398.808.80
#FFFFFF2.391.0021.0021.00
#0000008.8021.001.001.00
##0000008.8021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9cb221;
/* rgb */ color: rgb(156, 178, 33);
/* oklch */ color: oklch(72.2% 0.160 118.5);
Tailwind
colors: {
  custom: {
    50: '#bdc96b',
    500: '#9cb221',
    950: '#000000',
  },
}
SCSS
$custom: #9cb221;
$custom-light: #bdc96b;
$custom-dark: #000000;
JSON
{
  "hex": "#9cb221",
  "rgb": {
    "r": 156,
    "g": 178,
    "b": 33
  },
  "hsl": {
    "h": 69.103,
    "s": 68.72,
    "l": 41.373
  },
  "oklch": {
    "l": 0.72211,
    "c": 0.15968,
    "h": 118.5
  },
  "luminance": 0.39019
}

Semantic roles & 50–950 ramp

primary
#9CB221
secondary
#7566C9
accent
#3CEC57
background
#FCFCF6
surface
#F8F8EC
border
#D1D1C7
text
#131307
muted
#82827A

Preview Lab

Preview with #9CB221

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

Preview Lab → · Contrast checker → · Palette generator →

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