#9BA151#9BA151

#9BA151 is a light, moderate yellow. Relative luminance 0.331; OKLCH L 68.7% C 0.104 H 112.6°. Best body text is #000000 at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#9BA151
RGBrgb(155, 161, 81)
HSLhsl(65, 33%, 47%)
HSVhsv(65, 50%, 63%)
CMYKcmyk(3.7%, 0%, 49.7%, 36.9%)
CIE-LABlab(64.20, -14.01, 40.56)
CIE-LCHlch(64.20, 42.91, 109.06°)
OKLaboklab(68.65% -0.0401 0.0962)
OKLCHoklch(68.65% 0.104 112.6)
XYZxyz(27.7481, 33.0529, 12.7011)
Luminance0.3305 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9BA151 #5751A1
analogous
#A17F51 #9BA151 #73A151
triadic
#9BA151 #519BA1 #A1519B
tetradic
#9BA151 #51A17F #5751A1 #A15173
square
#9BA151 #51A17F #5751A1 #A15173
split-complementary
#9BA151 #5173A1 #7F51A1
monochromatic
#4D5028 #74783D #9BA151 #B5BA75 #CBCE9E

Accessibility & contrast

On white

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

On black

7.61
#9BA151 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9BA151
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9BA151#FFFFFF#000000##000000
##9BA1511.002.767.617.61
#FFFFFF2.761.0021.0021.00
#0000007.6121.001.001.00
##0000007.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#AB9B4A
Deuteranopia (green-blind)
#AB9D55
Tritanopia (blue-blind)
#A4998F
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #9ba151;
/* rgb */ color: rgb(155, 161, 81);
/* oklch */ color: oklch(68.7% 0.104 112.6);
Tailwind
colors: {
  custom: {
    50: '#babc84',
    500: '#9ba151',
    950: '#000000',
  },
}
SCSS
$custom: #9ba151;
$custom-light: #babc84;
$custom-dark: #000000;
JSON
{
  "hex": "#9ba151",
  "rgb": {
    "r": 155,
    "g": 161,
    "b": 81
  },
  "hsl": {
    "h": 64.5,
    "s": 33.058,
    "l": 47.451
  },
  "oklch": {
    "l": 0.68653,
    "c": 0.10426,
    "h": 112.6
  },
  "luminance": 0.33052
}

Semantic roles & 50–950 ramp

primary
#9BA151
secondary
#9693BB
accent
#5FC967
background
#FBFBF8
surface
#F6F6EF
border
#D0D0CA
text
#12120B
muted
#81817C

Preview Lab

Preview with #9BA151

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

Preview Lab → · Contrast checker → · Palette generator →

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