#9FA52A#9FA52A

#9FA52A is a light, vivid yellow. Relative luminance 0.344; OKLCH L 69.5% C 0.140 H 112.3°. Best body text is #000000 at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#9FA52A
RGBrgb(159, 165, 42)
HSLhsl(63, 59%, 41%)
HSVhsv(63, 75%, 65%)
CMYKcmyk(3.6%, 0%, 74.5%, 35.3%)
CIE-LABlab(65.32, -17.13, 58.75)
CIE-LCHlch(65.32, 61.20, 106.26°)
OKLaboklab(69.51% -0.0532 0.1294)
OKLCHoklch(69.51% 0.14 112.3)
XYZxyz(28.1720, 34.4490, 7.3553)
Luminance0.3445 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9FA52A #302AA5
analogous
#A56D2A #9FA52A #61A52A
triadic
#9FA52A #2A9FA5 #A52A9F
tetradic
#9FA52A #2AA56D #302AA5 #A52A61
square
#9FA52A #2AA56D #302AA5 #A52A61
split-complementary
#9FA52A #2A61A5 #6D2AA5
monochromatic
#414311 #70741E #9FA52A #C7CE3E #D5DA6F

Accessibility & contrast

On white

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

On black

7.89
#9FA52A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9FA52A
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9FA52A#FFFFFF#000000##000000
##9FA52A1.002.667.897.89
#FFFFFF2.661.0021.0021.00
#0000007.8921.001.001.00
##0000007.8921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9fa52a;
/* rgb */ color: rgb(159, 165, 42);
/* oklch */ color: oklch(69.5% 0.140 112.3);
Tailwind
colors: {
  custom: {
    50: '#bfbf6d',
    500: '#9fa52a',
    950: '#000000',
  },
}
SCSS
$custom: #9fa52a;
$custom-light: #bfbf6d;
$custom-dark: #000000;
JSON
{
  "hex": "#9fa52a",
  "rgb": {
    "r": 159,
    "g": 165,
    "b": 42
  },
  "hsl": {
    "h": 62.927,
    "s": 59.42,
    "l": 40.588
  },
  "oklch": {
    "l": 0.69514,
    "c": 0.13994,
    "h": 112.3
  },
  "luminance": 0.34448
}

Semantic roles & 50–950 ramp

primary
#9FA52A
secondary
#6E69C1
accent
#45E34D
background
#FCFBF6
surface
#F8F7EC
border
#D1D0C7
text
#131208
muted
#82817B

Preview Lab

Preview with #9FA52A

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

Preview Lab → · Contrast checker → · Palette generator →

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