#9BA22B#9BA22B

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

Color values

HEX#9BA22B
RGBrgb(155, 162, 43)
HSLhsl(64, 58%, 40%)
HSVhsv(64, 73%, 64%)
CMYKcmyk(4.3%, 0%, 73.5%, 36.5%)
CIE-LABlab(64.15, -17.29, 57.18)
CIE-LCHlch(64.15, 59.73, 106.83°)
OKLaboklab(68.5% -0.0533 0.1264)
OKLCHoklch(68.5% 0.137 112.9)
XYZxyz(26.8748, 32.9842, 7.2359)
Luminance0.3298 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9BA22B #322BA2
analogous
#A26D2B #9BA22B #60A22B
triadic
#9BA22B #2B9BA2 #A22B9B
tetradic
#9BA22B #2BA26D #322BA2 #A22B60
square
#9BA22B #2BA26D #322BA2 #A22B60
split-complementary
#9BA22B #2B60A2 #6D2BA2
monochromatic
#3E4111 #6D721E #9BA22B #C4CC3E #D2D96F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9BA22B#FFFFFF#000000##000000
##9BA22B1.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)
#AE9A14
Deuteranopia (green-blind)
#AE9D35
Tritanopia (blue-blind)
#A6988B
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #9ba22b;
/* rgb */ color: rgb(155, 162, 43);
/* oklch */ color: oklch(68.5% 0.137 112.9);
Tailwind
colors: {
  custom: {
    50: '#bcbd6d',
    500: '#9ba22b',
    950: '#000000',
  },
}
SCSS
$custom: #9ba22b;
$custom-light: #bcbd6d;
$custom-dark: #000000;
JSON
{
  "hex": "#9ba22b",
  "rgb": {
    "r": 155,
    "g": 162,
    "b": 43
  },
  "hsl": {
    "h": 63.529,
    "s": 58.049,
    "l": 40.196
  },
  "oklch": {
    "l": 0.685,
    "c": 0.13721,
    "h": 112.9
  },
  "luminance": 0.32984
}

Semantic roles & 50–950 ramp

primary
#9BA22B
secondary
#6E69C0
accent
#47E150
background
#FBFBF6
surface
#F7F6EC
border
#D0D0C7
text
#121208
muted
#81817B

Preview Lab

Preview with #9BA22B

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

Preview Lab → · Contrast checker → · Palette generator →

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