#9FA52F#9FA52F

#9FA52F is a light, vivid yellow. Relative luminance 0.345; OKLCH L 69.5% C 0.137 H 112.4°. Best body text is #000000 at 7.90:1 contrast (WCAG AA passes).

Color values

HEX#9FA52F
RGBrgb(159, 165, 47)
HSLhsl(63, 56%, 42%)
HSVhsv(63, 72%, 65%)
CMYKcmyk(3.6%, 0%, 71.5%, 35.3%)
CIE-LABlab(65.35, -16.89, 56.99)
CIE-LCHlch(65.35, 59.44, 106.51°)
OKLaboklab(69.55% -0.0521 0.1266)
OKLCHoklch(69.55% 0.137 112.4)
XYZxyz(28.2672, 34.4871, 7.8564)
Luminance0.3449 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9FA52F #352FA5
analogous
#A5702F #9FA52F #64A52F
triadic
#9FA52F #2F9FA5 #A52F9F
tetradic
#9FA52F #2FA570 #352FA5 #A52F64
square
#9FA52F #2FA570 #352FA5 #A52F64
split-complementary
#9FA52F #2F64A5 #702FA5
monochromatic
#434614 #717521 #9FA52F #C4CB47 #D3D876

Accessibility & contrast

On white

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

On black

7.90
#9FA52F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9FA52F
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9FA52F#FFFFFF#000000##000000
##9FA52F1.002.667.907.90
#FFFFFF2.661.0021.0021.00
#0000007.9021.001.001.00
##0000007.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#B29D1A
Deuteranopia (green-blind)
#B2A038
Tritanopia (blue-blind)
#AA9B8E
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #9fa52f;
/* rgb */ color: rgb(159, 165, 47);
/* oklch */ color: oklch(69.5% 0.137 112.4);
Tailwind
colors: {
  custom: {
    50: '#bfbf70',
    500: '#9fa52f',
    950: '#000000',
  },
}
SCSS
$custom: #9fa52f;
$custom-light: #bfbf70;
$custom-dark: #000000;
JSON
{
  "hex": "#9fa52f",
  "rgb": {
    "r": 159,
    "g": 165,
    "b": 47
  },
  "hsl": {
    "h": 63.051,
    "s": 55.66,
    "l": 41.569
  },
  "oklch": {
    "l": 0.69547,
    "c": 0.1369,
    "h": 112.4
  },
  "luminance": 0.34486
}

Semantic roles & 50–950 ramp

primary
#9FA52F
secondary
#7470C0
accent
#49DF50
background
#FCFBF7
surface
#F8F7ED
border
#D1D0C8
text
#131208
muted
#82817B

Preview Lab

Preview with #9FA52F

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

Preview Lab → · Contrast checker → · Palette generator →

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