#9BA22F#9BA22F

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

Color values

HEX#9BA22F
RGBrgb(155, 162, 47)
HSLhsl(64, 55%, 41%)
HSVhsv(64, 71%, 64%)
CMYKcmyk(4.3%, 0%, 71%, 36.5%)
CIE-LABlab(64.17, -17.09, 55.73)
CIE-LCHlch(64.17, 58.29, 107.04°)
OKLaboklab(68.53% -0.0524 0.1241)
OKLCHoklch(68.53% 0.135 112.9)
XYZxyz(26.9518, 33.0151, 7.6415)
Luminance0.3301 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9BA22F #362FA2
analogous
#A26F2F #9BA22F #61A22F
triadic
#9BA22F #2F9BA2 #A22F9B
tetradic
#9BA22F #2FA26F #362FA2 #A22F61
square
#9BA22F #2FA26F #362FA2 #A22F61
split-complementary
#9BA22F #2F61A2 #6F2FA2
monochromatic
#404313 #6E7321 #9BA22F #C1C945 #D1D775

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9BA22F#FFFFFF#000000##000000
##9BA22F1.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)
#AE9A1B
Deuteranopia (green-blind)
#AE9D38
Tritanopia (blue-blind)
#A5988B
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #9ba22f;
/* rgb */ color: rgb(155, 162, 47);
/* oklch */ color: oklch(68.5% 0.135 112.9);
Tailwind
colors: {
  custom: {
    50: '#bcbd6f',
    500: '#9ba22f',
    950: '#000000',
  },
}
SCSS
$custom: #9ba22f;
$custom-light: #bcbd6f;
$custom-dark: #000000;
JSON
{
  "hex": "#9ba22f",
  "rgb": {
    "r": 155,
    "g": 162,
    "b": 47
  },
  "hsl": {
    "h": 63.652,
    "s": 55.024,
    "l": 40.98
  },
  "oklch": {
    "l": 0.68528,
    "c": 0.13469,
    "h": 112.9
  },
  "luminance": 0.33014
}

Semantic roles & 50–950 ramp

primary
#9BA22F
secondary
#736EBF
accent
#49DE53
background
#FBFBF7
surface
#F7F6ED
border
#D0D0C8
text
#121208
muted
#81817B

Preview Lab

Preview with #9BA22F

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

Preview Lab → · Contrast checker → · Palette generator →

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