#9FA271#9FA271

#9FA271 is a light, moderate yellow. Relative luminance 0.344; OKLCH L 69.7% C 0.067 H 111.0°. Best body text is #000000 at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#9FA271
RGBrgb(159, 162, 113)
HSLhsl(64, 21%, 54%)
HSVhsv(64, 30%, 64%)
CMYKcmyk(1.9%, 0%, 30.2%, 36.5%)
CIE-LABlab(65.28, -9.17, 25.20)
CIE-LCHlch(65.28, 26.81, 110.00°)
OKLaboklab(69.75% -0.0241 0.0629)
OKLCHoklch(69.75% 0.067 111)
XYZxyz(30.1991, 34.4042, 20.6694)
Luminance0.3440 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9FA271 #7471A2
analogous
#A28D71 #9FA271 #87A271
triadic
#9FA271 #719FA2 #A2719F
tetradic
#9FA271 #71A28D #7471A2 #A27187
square
#9FA271 #71A28D #7471A2 #A27187
split-complementary
#9FA271 #7187A2 #8D71A2
monochromatic
#5A5C3C #7E8155 #9FA271 #B8BA96 #D1D2BB

Accessibility & contrast

On white

2.66
#9FA271 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.88
#9FA271 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9FA271
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9FA271#FFFFFF#000000##000000
##9FA2711.002.667.887.88
#FFFFFF2.661.0021.0021.00
#0000007.8821.001.001.00
##0000007.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#A99E6E
Deuteranopia (green-blind)
#AA9F73
Tritanopia (blue-blind)
#A59C95
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #9fa271;
/* rgb */ color: rgb(159, 162, 113);
/* oklch */ color: oklch(69.7% 0.067 111.0);
Tailwind
colors: {
  custom: {
    50: '#bcbd9a',
    500: '#9fa271',
    950: '#000000',
  },
}
SCSS
$custom: #9fa271;
$custom-light: #bcbd9a;
$custom-dark: #000000;
JSON
{
  "hex": "#9fa271",
  "rgb": {
    "r": 159,
    "g": 162,
    "b": 113
  },
  "hsl": {
    "h": 63.673,
    "s": 20.851,
    "l": 53.922
  },
  "oklch": {
    "l": 0.69747,
    "c": 0.06739,
    "h": 111
  },
  "luminance": 0.34404
}

Semantic roles & 50–950 ramp

primary
#9FA271
secondary
#AEADC2
accent
#6ABD6F
background
#FBFBF9
surface
#F6F6F2
border
#D0D0CC
text
#12120E
muted
#81817E

Preview Lab

Preview with #9FA271

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

Preview Lab → · Contrast checker → · Palette generator →

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