#9AB228#9AB228

#9AB228 is a light, vivid yellow-green. Relative luminance 0.389; OKLCH L 72.1% C 0.157 H 119.4°. Best body text is #000000 at 8.77:1 contrast (WCAG AA passes).

Color values

HEX#9AB228
RGBrgb(154, 178, 40)
HSLhsl(70, 63%, 43%)
HSVhsv(70, 78%, 70%)
CMYKcmyk(13.5%, 0%, 77.5%, 30.2%)
CIE-LABlab(68.65, -25.85, 62.37)
CIE-LCHlch(68.65, 67.52, 112.52°)
OKLaboklab(72.1% -0.0772 0.1369)
OKLCHoklch(72.1% 0.157 119.4)
XYZxyz(29.6304, 38.8642, 7.9477)
Luminance0.3886 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9AB228 #4028B2
analogous
#B28528 #9AB228 #55B228
triadic
#9AB228 #289AB2 #B2289A
tetradic
#9AB228 #28B285 #4028B2 #B22855
square
#9AB228 #28B285 #4028B2 #B22855
split-complementary
#9AB228 #2855B2 #8528B2
monochromatic
#444E12 #6F801D #9AB228 #BBD543 #CDE075

Accessibility & contrast

On white

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

On black

8.77
#9AB228 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9AB228
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9AB228#FFFFFF#000000##000000
##9AB2281.002.398.778.77
#FFFFFF2.391.0021.0021.00
#0000008.7721.001.001.00
##0000008.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#BEA800
Deuteranopia (green-blind)
#BBA835
Tritanopia (blue-blind)
#A3A898
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #9ab228;
/* rgb */ color: rgb(154, 178, 40);
/* oklch */ color: oklch(72.1% 0.157 119.4);
Tailwind
colors: {
  custom: {
    50: '#bbc96e',
    500: '#9ab228',
    950: '#000000',
  },
}
SCSS
$custom: #9ab228;
$custom-light: #bbc96e;
$custom-dark: #000000;
JSON
{
  "hex": "#9ab228",
  "rgb": {
    "r": 154,
    "g": 178,
    "b": 40
  },
  "hsl": {
    "h": 70.435,
    "s": 63.303,
    "l": 42.745
  },
  "oklch": {
    "l": 0.72095,
    "c": 0.15719,
    "h": 119.4
  },
  "luminance": 0.38864
}

Semantic roles & 50–950 ramp

primary
#9AB228
secondary
#7E6FC7
accent
#41E65E
background
#FBFCF7
surface
#F7F8ED
border
#D0D1C8
text
#121308
muted
#81827B

Preview Lab

Preview with #9AB228

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

Preview Lab → · Contrast checker → · Palette generator →

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