#9BAB2F#9BAB2F

#9BAB2F is a light, vivid yellow. Relative luminance 0.363; OKLCH L 70.6% C 0.145 H 116.7°. Best body text is #000000 at 8.26:1 contrast (WCAG AA passes).

Color values

HEX#9BAB2F
RGBrgb(155, 171, 47)
HSLhsl(68, 57%, 43%)
HSVhsv(68, 73%, 67%)
CMYKcmyk(9.4%, 0%, 72.5%, 32.9%)
CIE-LABlab(66.75, -21.64, 58.25)
CIE-LCHlch(66.75, 62.14, 110.38°)
OKLaboklab(70.59% -0.0651 0.1294)
OKLCHoklch(70.59% 0.145 116.7)
XYZxyz(28.5943, 36.3000, 8.1890)
Luminance0.3630 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9BAB2F #3F2FAB
analogous
#AB7D2F #9BAB2F #5DAB2F
triadic
#9BAB2F #2F9BAB #AB2F9B
tetradic
#9BAB2F #2FAB7D #3F2FAB #AB2F5D
square
#9BAB2F #2FAB7D #3F2FAB #AB2F5D
split-complementary
#9BAB2F #2F5DAB #7D2FAB
monochromatic
#444B15 #6F7B22 #9BAB2F #BCCD4A #CEDA7A

Accessibility & contrast

On white

2.54
#9BAB2F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.26
#9BAB2F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9BAB2F
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9BAB2F#FFFFFF#000000##000000
##9BAB2F1.002.548.268.26
#FFFFFF2.541.0021.0021.00
#0000008.2621.001.001.00
##0000008.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#B7A218
Deuteranopia (green-blind)
#B5A339
Tritanopia (blue-blind)
#A5A193
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #9bab2f;
/* rgb */ color: rgb(155, 171, 47);
/* oklch */ color: oklch(70.6% 0.145 116.7);
Tailwind
colors: {
  custom: {
    50: '#bcc370',
    500: '#9bab2f',
    950: '#000000',
  },
}
SCSS
$custom: #9bab2f;
$custom-light: #bcc370;
$custom-dark: #000000;
JSON
{
  "hex": "#9bab2f",
  "rgb": {
    "r": 155,
    "g": 171,
    "b": 47
  },
  "hsl": {
    "h": 67.742,
    "s": 56.881,
    "l": 42.745
  },
  "oklch": {
    "l": 0.70593,
    "c": 0.14482,
    "h": 116.7
  },
  "luminance": 0.363
}

Semantic roles & 50–950 ramp

primary
#9BAB2F
secondary
#7D73C3
accent
#48E05B
background
#FBFCF7
surface
#F7F8ED
border
#D0D1C8
text
#121208
muted
#81817B

Preview Lab

Preview with #9BAB2F

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

Preview Lab → · Contrast checker → · Palette generator →

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