#9BA822#9BA822

#9BA822 is a light, vivid yellow. Relative luminance 0.351; OKLCH L 69.8% C 0.149 H 115.4°. Best body text is #000000 at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#9BA822
RGBrgb(155, 168, 34)
HSLhsl(66, 66%, 40%)
HSVhsv(66, 80%, 66%)
CMYKcmyk(7.7%, 0%, 79.8%, 34.1%)
CIE-LABlab(65.82, -20.73, 61.63)
CIE-LCHlch(65.82, 65.03, 108.59°)
OKLaboklab(69.83% -0.0636 0.1343)
OKLCHoklch(69.83% 0.149 115.4)
XYZxyz(27.8097, 35.0898, 6.8211)
Luminance0.3509 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9BA822 #2F22A8
analogous
#A87222 #9BA822 #58A822
triadic
#9BA822 #229BA8 #A8229B
tetradic
#9BA822 #22A872 #2F22A8 #A82258
square
#9BA822 #22A872 #2F22A8 #A82258
split-complementary
#9BA822 #2258A8 #7222A8
monochromatic
#3D420D #6C7518 #9BA822 #C6D532 #D4E065

Accessibility & contrast

On white

2.62
#9BA822 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.02
#9BA822 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9BA822
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9BA822#FFFFFF#000000##000000
##9BA8221.002.628.028.02
#FFFFFF2.621.0021.0021.00
#0000008.0221.001.001.00
##0000008.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#B49F00
Deuteranopia (green-blind)
#B4A12F
Tritanopia (blue-blind)
#A59E90
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #9ba822;
/* rgb */ color: rgb(155, 168, 34);
/* oklch */ color: oklch(69.8% 0.149 115.4);
Tailwind
colors: {
  custom: {
    50: '#bcc16a',
    500: '#9ba822',
    950: '#000000',
  },
}
SCSS
$custom: #9ba822;
$custom-light: #bcc16a;
$custom-dark: #000000;
JSON
{
  "hex": "#9ba822",
  "rgb": {
    "r": 155,
    "g": 168,
    "b": 34
  },
  "hsl": {
    "h": 65.821,
    "s": 66.337,
    "l": 39.608
  },
  "oklch": {
    "l": 0.69825,
    "c": 0.14857,
    "h": 115.4
  },
  "luminance": 0.35089
}

Semantic roles & 50–950 ramp

primary
#9BA822
secondary
#6A61C5
accent
#3FE94F
background
#FCFBF6
surface
#F8F7EC
border
#D1D0C7
text
#121207
muted
#81817A

Preview Lab

Preview with #9BA822

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

Preview Lab → · Contrast checker → · Palette generator →

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