#9CA171#9CA171

#9CA171 is a light, moderate yellow. Relative luminance 0.338; OKLCH L 69.3% C 0.066 H 113.0°. Best body text is #000000 at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#9CA171
RGBrgb(156, 161, 113)
HSLhsl(66, 20%, 54%)
HSVhsv(66, 30%, 63%)
CMYKcmyk(3.1%, 0%, 29.8%, 36.9%)
CIE-LABlab(64.76, -9.84, 24.46)
CIE-LCHlch(64.76, 26.37, 111.90°)
OKLaboklab(69.28% -0.0259 0.0612)
OKLCHoklch(69.28% 0.066 113)
XYZxyz(29.4358, 33.7502, 20.5833)
Luminance0.3375 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9CA171 #7671A1
analogous
#A18E71 #9CA171 #84A171
triadic
#9CA171 #719CA1 #A1719C
tetradic
#9CA171 #71A18E #7671A1 #A17184
square
#9CA171 #71A18E #7671A1 #A17184
split-complementary
#9CA171 #7184A1 #8E71A1
monochromatic
#585B3C #7C8055 #9CA171 #B6B996 #CFD2BB

Accessibility & contrast

On white

2.71
#9CA171 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.75
#9CA171 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9CA171
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9CA171#FFFFFF#000000##000000
##9CA1711.002.717.757.75
#FFFFFF2.711.0021.0021.00
#0000007.7521.001.001.00
##0000007.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#A89C6E
Deuteranopia (green-blind)
#A89E73
Tritanopia (blue-blind)
#A29B94
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #9ca171;
/* rgb */ color: rgb(156, 161, 113);
/* oklch */ color: oklch(69.3% 0.066 113.0);
Tailwind
colors: {
  custom: {
    50: '#b9bc9a',
    500: '#9ca171',
    950: '#000000',
  },
}
SCSS
$custom: #9ca171;
$custom-light: #b9bc9a;
$custom-dark: #000000;
JSON
{
  "hex": "#9ca171",
  "rgb": {
    "r": 156,
    "g": 161,
    "b": 113
  },
  "hsl": {
    "h": 66.25,
    "s": 20.339,
    "l": 53.725
  },
  "oklch": {
    "l": 0.69276,
    "c": 0.06647,
    "h": 113
  },
  "luminance": 0.3375
}

Semantic roles & 50–950 ramp

primary
#9CA171
secondary
#AFADC1
accent
#6BBD73
background
#FBFBF9
surface
#F6F6F2
border
#D0D0CC
text
#11120E
muted
#80817E

Preview Lab

Preview with #9CA171

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

Preview Lab → · Contrast checker → · Palette generator →

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