#9FA151#9FA151

#9FA151 is a light, moderate yellow. Relative luminance 0.335; OKLCH L 69.0% C 0.103 H 110.1°. Best body text is #000000 at 7.69:1 contrast (WCAG AA passes).

Color values

HEX#9FA151
RGBrgb(159, 161, 81)
HSLhsl(62, 33%, 47%)
HSVhsv(62, 50%, 63%)
CMYKcmyk(1.2%, 0%, 49.7%, 36.9%)
CIE-LABlab(64.53, -12.33, 41.03)
CIE-LCHlch(64.53, 42.84, 106.73°)
OKLaboklab(68.99% -0.0356 0.0972)
OKLCHoklch(68.99% 0.103 110.1)
XYZxyz(28.5287, 33.4554, 12.7377)
Luminance0.3346 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9FA151 #5351A1
analogous
#A17B51 #9FA151 #77A151
triadic
#9FA151 #519FA1 #A1519F
tetradic
#9FA151 #51A17B #5351A1 #A15177
square
#9FA151 #51A17B #5351A1 #A15177
split-complementary
#9FA151 #5177A1 #7B51A1
monochromatic
#4F5028 #77783D #9FA151 #B8BA75 #CDCE9E

Accessibility & contrast

On white

2.73
#9FA151 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.69
#9FA151 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9FA151
7.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9FA151#FFFFFF#000000##000000
##9FA1511.002.737.697.69
#FFFFFF2.731.0021.0021.00
#0000007.6921.001.001.00
##0000007.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#AC9B4A
Deuteranopia (green-blind)
#AD9E55
Tritanopia (blue-blind)
#A8998F
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #9fa151;
/* rgb */ color: rgb(159, 161, 81);
/* oklch */ color: oklch(69.0% 0.103 110.1);
Tailwind
colors: {
  custom: {
    50: '#bdbc84',
    500: '#9fa151',
    950: '#000000',
  },
}
SCSS
$custom: #9fa151;
$custom-light: #bdbc84;
$custom-dark: #000000;
JSON
{
  "hex": "#9fa151",
  "rgb": {
    "r": 159,
    "g": 161,
    "b": 81
  },
  "hsl": {
    "h": 61.5,
    "s": 33.058,
    "l": 47.451
  },
  "oklch": {
    "l": 0.68992,
    "c": 0.10349,
    "h": 110.1
  },
  "luminance": 0.33455
}

Semantic roles & 50–950 ramp

primary
#9FA151
secondary
#9493BB
accent
#5FC961
background
#FBFBF8
surface
#F7F6EF
border
#D0D0CA
text
#12120B
muted
#81817C

Preview Lab

Preview with #9FA151

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

Preview Lab → · Contrast checker → · Palette generator →

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