#9FA62F#9FA62F

#9FA62F is a light, vivid yellow. Relative luminance 0.348; OKLCH L 69.8% C 0.138 H 112.8°. Best body text is #000000 at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#9FA62F
RGBrgb(159, 166, 47)
HSLhsl(64, 56%, 42%)
HSVhsv(64, 72%, 65%)
CMYKcmyk(4.2%, 0%, 71.7%, 34.9%)
CIE-LABlab(65.63, -17.40, 57.27)
CIE-LCHlch(65.63, 59.85, 106.90°)
OKLaboklab(69.77% -0.0535 0.1272)
OKLCHoklch(69.77% 0.138 112.8)
XYZxyz(28.4482, 34.8492, 7.9168)
Luminance0.3485 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9FA62F #362FA6
analogous
#A6722F #9FA62F #64A62F
triadic
#9FA62F #2F9FA6 #A62F9F
tetradic
#9FA62F #2FA672 #362FA6 #A62F64
square
#9FA62F #2FA672 #362FA6 #A62F64
split-complementary
#9FA62F #2F64A6 #722FA6
monochromatic
#444714 #717621 #9FA62F #C3CB47 #D3D877

Accessibility & contrast

On white

2.63
#9FA62F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.97
#9FA62F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9FA62F
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9FA62F#FFFFFF#000000##000000
##9FA62F1.002.637.977.97
#FFFFFF2.631.0021.0021.00
#0000007.9721.001.001.00
##0000007.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#B39E1A
Deuteranopia (green-blind)
#B3A138
Tritanopia (blue-blind)
#AA9C8F
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #9fa62f;
/* rgb */ color: rgb(159, 166, 47);
/* oklch */ color: oklch(69.8% 0.138 112.8);
Tailwind
colors: {
  custom: {
    50: '#bfc070',
    500: '#9fa62f',
    950: '#000000',
  },
}
SCSS
$custom: #9fa62f;
$custom-light: #bfc070;
$custom-dark: #000000;
JSON
{
  "hex": "#9fa62f",
  "rgb": {
    "r": 159,
    "g": 166,
    "b": 47
  },
  "hsl": {
    "h": 63.529,
    "s": 55.869,
    "l": 41.765
  },
  "oklch": {
    "l": 0.69774,
    "c": 0.13798,
    "h": 112.8
  },
  "luminance": 0.34849
}

Semantic roles & 50–950 ramp

primary
#9FA62F
secondary
#7570C1
accent
#49DF51
background
#FCFBF7
surface
#F8F7ED
border
#D1D0C8
text
#131208
muted
#82817B

Preview Lab

Preview with #9FA62F

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

Preview Lab → · Contrast checker → · Palette generator →

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