#9BAC21#9BAC21

#9BAC21 is a light, vivid yellow. Relative luminance 0.366; OKLCH L 70.7% C 0.153 H 116.9°. Best body text is #000000 at 8.32:1 contrast (WCAG AA passes).

Color values

HEX#9BAC21
RGBrgb(155, 172, 33)
HSLhsl(67, 68%, 40%)
HSVhsv(67, 81%, 67%)
CMYKcmyk(9.9%, 0%, 80.8%, 32.5%)
CIE-LABlab(66.96, -22.76, 62.93)
CIE-LCHlch(66.96, 66.92, 109.88°)
OKLaboklab(70.74% -0.0693 0.1369)
OKLCHoklch(70.74% 0.153 116.9)
XYZxyz(28.5454, 36.5838, 6.9962)
Luminance0.3658 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9BAC21 #3221AC
analogous
#AC7721 #9BAC21 #56AC21
triadic
#9BAC21 #219BAC #AC219B
tetradic
#9BAC21 #21AC77 #3221AC #AC2156
square
#9BAC21 #21AC77 #3221AC #AC2156
split-complementary
#9BAC21 #2156AC #7721AC
monochromatic
#3E450D #6D7917 #9BAC21 #C4D832 #D2E266

Accessibility & contrast

On white

2.53
#9BAC21 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.32
#9BAC21 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9BAC21
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9BAC21#FFFFFF#000000##000000
##9BAC211.002.538.328.32
#FFFFFF2.531.0021.0021.00
#0000008.3221.001.001.00
##0000008.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#B8A200
Deuteranopia (green-blind)
#B7A42F
Tritanopia (blue-blind)
#A5A293
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #9bac21;
/* rgb */ color: rgb(155, 172, 33);
/* oklch */ color: oklch(70.7% 0.153 116.9);
Tailwind
colors: {
  custom: {
    50: '#bcc46a',
    500: '#9bac21',
    950: '#000000',
  },
}
SCSS
$custom: #9bac21;
$custom-light: #bcc46a;
$custom-dark: #000000;
JSON
{
  "hex": "#9bac21",
  "rgb": {
    "r": 155,
    "g": 172,
    "b": 33
  },
  "hsl": {
    "h": 67.338,
    "s": 67.805,
    "l": 40.196
  },
  "oklch": {
    "l": 0.70743,
    "c": 0.15341,
    "h": 116.9
  },
  "luminance": 0.36583
}

Semantic roles & 50–950 ramp

primary
#9BAC21
secondary
#6E62C7
accent
#3DEB52
background
#FCFCF6
surface
#F8F8EC
border
#D1D1C7
text
#121207
muted
#81817A

Preview Lab

Preview with #9BAC21

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

Preview Lab → · Contrast checker → · Palette generator →

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