#9BA22A#9BA22A

#9BA22A is a light, vivid yellow. Relative luminance 0.330; OKLCH L 68.5% C 0.138 H 112.9°. Best body text is #000000 at 7.60:1 contrast (WCAG AA passes).

Color values

HEX#9BA22A
RGBrgb(155, 162, 42)
HSLhsl(64, 59%, 40%)
HSVhsv(64, 74%, 64%)
CMYKcmyk(4.3%, 0%, 74.1%, 36.5%)
CIE-LABlab(64.14, -17.34, 57.52)
CIE-LCHlch(64.14, 60.08, 106.77°)
OKLaboklab(68.49% -0.0536 0.127)
OKLCHoklch(68.49% 0.138 112.9)
XYZxyz(26.8567, 32.9770, 7.1405)
Luminance0.3298 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9BA22A #312AA2
analogous
#A26D2A #9BA22A #5FA22A
triadic
#9BA22A #2A9BA2 #A22A9B
tetradic
#9BA22A #2AA26D #312AA2 #A22A5F
square
#9BA22A #2AA26D #312AA2 #A22A5F
split-complementary
#9BA22A #2A5FA2 #6D2AA2
monochromatic
#3E4111 #6D711D #9BA22A #C4CD3D #D3D96D

Accessibility & contrast

On white

2.76
#9BA22A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.60
#9BA22A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9BA22A
7.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9BA22A#FFFFFF#000000##000000
##9BA22A1.002.767.607.60
#FFFFFF2.761.0021.0021.00
#0000007.6021.001.001.00
##0000007.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#AE9A11
Deuteranopia (green-blind)
#AF9D34
Tritanopia (blue-blind)
#A6988B
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #9ba22a;
/* rgb */ color: rgb(155, 162, 42);
/* oklch */ color: oklch(68.5% 0.138 112.9);
Tailwind
colors: {
  custom: {
    50: '#bcbd6d',
    500: '#9ba22a',
    950: '#000000',
  },
}
SCSS
$custom: #9ba22a;
$custom-light: #bcbd6d;
$custom-dark: #000000;
JSON
{
  "hex": "#9ba22a",
  "rgb": {
    "r": 155,
    "g": 162,
    "b": 42
  },
  "hsl": {
    "h": 63.5,
    "s": 58.824,
    "l": 40
  },
  "oklch": {
    "l": 0.68493,
    "c": 0.13781,
    "h": 112.9
  },
  "luminance": 0.32976
}

Semantic roles & 50–950 ramp

primary
#9BA22A
secondary
#6D68C0
accent
#46E24F
background
#FBFBF6
surface
#F7F6EC
border
#D0D0C7
text
#121207
muted
#81817A

Preview Lab

Preview with #9BA22A

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

Preview Lab → · Contrast checker → · Palette generator →

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