#9AB221#9AB221

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

Color values

HEX#9AB221
RGBrgb(154, 178, 33)
HSLhsl(70, 69%, 41%)
HSVhsv(70, 81%, 70%)
CMYKcmyk(13.5%, 0%, 81.5%, 30.2%)
CIE-LABlab(68.62, -26.13, 64.37)
CIE-LCHlch(68.62, 69.47, 112.10°)
OKLaboklab(72.06% -0.0785 0.14)
OKLCHoklch(72.06% 0.16 119.3)
XYZxyz(29.5220, 38.8208, 7.3765)
Luminance0.3882 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9AB221 #3921B2
analogous
#B28221 #9AB221 #52B221
triadic
#9AB221 #219AB2 #B2219A
tetradic
#9AB221 #21B282 #3921B2 #B22152
square
#9AB221 #21B282 #3921B2 #B22152
split-complementary
#9AB221 #2152B2 #8221B2
monochromatic
#414B0E #6D7E17 #9AB221 #BFDA36 #CFE36A

Accessibility & contrast

On white

2.40
#9AB221 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.76
#9AB221 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9AB221
8.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9AB221#FFFFFF#000000##000000
##9AB2211.002.408.768.76
#FFFFFF2.401.0021.0021.00
#0000008.7621.001.001.00
##0000008.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#BEA700
Deuteranopia (green-blind)
#BBA830
Tritanopia (blue-blind)
#A4A898
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #9ab221;
/* rgb */ color: rgb(154, 178, 33);
/* oklch */ color: oklch(72.1% 0.160 119.3);
Tailwind
colors: {
  custom: {
    50: '#bcc96b',
    500: '#9ab221',
    950: '#000000',
  },
}
SCSS
$custom: #9ab221;
$custom-light: #bcc96b;
$custom-dark: #000000;
JSON
{
  "hex": "#9ab221",
  "rgb": {
    "r": 154,
    "g": 178,
    "b": 33
  },
  "hsl": {
    "h": 69.931,
    "s": 68.72,
    "l": 41.373
  },
  "oklch": {
    "l": 0.72059,
    "c": 0.16047,
    "h": 119.3
  },
  "luminance": 0.38821
}

Semantic roles & 50–950 ramp

primary
#9AB221
secondary
#7666C9
accent
#3CEC59
background
#FCFCF6
surface
#F8F8EC
border
#D1D1C7
text
#121307
muted
#81827A

Preview Lab

Preview with #9AB221

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

Preview Lab → · Contrast checker → · Palette generator →

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