#9FA251#9FA251

#9FA251 is a light, moderate yellow. Relative luminance 0.338; OKLCH L 69.2% C 0.105 H 110.7°. Best body text is #000000 at 7.76:1 contrast (WCAG AA passes).

Color values

HEX#9FA251
RGBrgb(159, 162, 81)
HSLhsl(62, 33%, 48%)
HSVhsv(62, 50%, 64%)
CMYKcmyk(1.9%, 0%, 50%, 36.5%)
CIE-LABlab(64.81, -12.85, 41.36)
CIE-LCHlch(64.81, 43.31, 107.26°)
OKLaboklab(69.22% -0.0371 0.0979)
OKLCHoklch(69.22% 0.105 110.7)
XYZxyz(28.7042, 33.8063, 12.7962)
Luminance0.3381 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9FA251 #5451A2
analogous
#A27C51 #9FA251 #77A251
triadic
#9FA251 #519FA2 #A2519F
tetradic
#9FA251 #51A27C #5451A2 #A25177
square
#9FA251 #51A27C #5451A2 #A25177
split-complementary
#9FA251 #5177A2 #7C51A2
monochromatic
#4F5028 #77793D #9FA251 #B8BA76 #CDCF9F

Accessibility & contrast

On white

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

On black

7.76
#9FA251 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9FA251
7.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9FA251#FFFFFF#000000##000000
##9FA2511.002.717.767.76
#FFFFFF2.711.0021.0021.00
#0000007.7621.001.001.00
##0000007.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#AD9C4A
Deuteranopia (green-blind)
#AD9E55
Tritanopia (blue-blind)
#A89A8F
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #9fa251;
/* rgb */ color: rgb(159, 162, 81);
/* oklch */ color: oklch(69.2% 0.105 110.7);
Tailwind
colors: {
  custom: {
    50: '#bdbd84',
    500: '#9fa251',
    950: '#000000',
  },
}
SCSS
$custom: #9fa251;
$custom-light: #bdbd84;
$custom-dark: #000000;
JSON
{
  "hex": "#9fa251",
  "rgb": {
    "r": 159,
    "g": 162,
    "b": 81
  },
  "hsl": {
    "h": 62.222,
    "s": 33.333,
    "l": 47.647
  },
  "oklch": {
    "l": 0.69215,
    "c": 0.10469,
    "h": 110.7
  },
  "luminance": 0.33806
}

Semantic roles & 50–950 ramp

primary
#9FA251
secondary
#9493BC
accent
#5EC962
background
#FBFBF8
surface
#F7F6EF
border
#D0D0CA
text
#12120B
muted
#81817C

Preview Lab

Preview with #9FA251

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

Preview Lab → · Contrast checker → · Palette generator →

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