#9BAA2F#9BAA2F

#9BAA2F is a light, vivid yellow. Relative luminance 0.359; OKLCH L 70.4% C 0.144 H 116.3°. Best body text is #000000 at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#9BAA2F
RGBrgb(155, 170, 47)
HSLhsl(67, 57%, 43%)
HSVhsv(67, 72%, 67%)
CMYKcmyk(8.8%, 0%, 72.4%, 33.3%)
CIE-LABlab(66.46, -21.14, 57.97)
CIE-LCHlch(66.46, 61.71, 110.04°)
OKLaboklab(70.36% -0.0637 0.1288)
OKLCHoklch(70.36% 0.144 116.3)
XYZxyz(28.4061, 35.9236, 8.1263)
Luminance0.3592 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9BAA2F #3E2FAA
analogous
#AA7B2F #9BAA2F #5EAA2F
triadic
#9BAA2F #2F9BAA #AA2F9B
tetradic
#9BAA2F #2FAA7B #3E2FAA #AA2F5E
square
#9BAA2F #2FAA7B #3E2FAA #AA2F5E
split-complementary
#9BAA2F #2F5EAA #7B2FAA
monochromatic
#444A14 #6F7A22 #9BAA2F #BDCD49 #CEDA79

Accessibility & contrast

On white

2.57
#9BAA2F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.18
#9BAA2F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9BAA2F
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9BAA2F#FFFFFF#000000##000000
##9BAA2F1.002.578.188.18
#FFFFFF2.571.0021.0021.00
#0000008.1821.001.001.00
##0000008.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#B6A118
Deuteranopia (green-blind)
#B5A239
Tritanopia (blue-blind)
#A5A092
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #9baa2f;
/* rgb */ color: rgb(155, 170, 47);
/* oklch */ color: oklch(70.4% 0.144 116.3);
Tailwind
colors: {
  custom: {
    50: '#bcc370',
    500: '#9baa2f',
    950: '#000000',
  },
}
SCSS
$custom: #9baa2f;
$custom-light: #bcc370;
$custom-dark: #000000;
JSON
{
  "hex": "#9baa2f",
  "rgb": {
    "r": 155,
    "g": 170,
    "b": 47
  },
  "hsl": {
    "h": 67.317,
    "s": 56.682,
    "l": 42.549
  },
  "oklch": {
    "l": 0.70363,
    "c": 0.14367,
    "h": 116.3
  },
  "luminance": 0.35923
}

Semantic roles & 50–950 ramp

primary
#9BAA2F
secondary
#7C72C2
accent
#48E05A
background
#FBFBF7
surface
#F7F7ED
border
#D0D0C8
text
#121208
muted
#81817B

Preview Lab

Preview with #9BAA2F

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

Preview Lab → · Contrast checker → · Palette generator →

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