#9FA42F#9FA42F

#9FA42F is a light, vivid yellow. Relative luminance 0.341; OKLCH L 69.3% C 0.136 H 111.9°. Best body text is #000000 at 7.83:1 contrast (WCAG AA passes).

Color values

HEX#9FA42F
RGBrgb(159, 164, 47)
HSLhsl(63, 55%, 41%)
HSVhsv(63, 71%, 64%)
CMYKcmyk(3%, 0%, 71.3%, 35.7%)
CIE-LABlab(65.06, -16.37, 56.71)
CIE-LCHlch(65.06, 59.03, 106.10°)
OKLaboklab(69.32% -0.0506 0.126)
OKLCHoklch(69.32% 0.136 111.9)
XYZxyz(28.0875, 34.1278, 7.7965)
Luminance0.3413 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9FA42F #342FA4
analogous
#A46F2F #9FA42F #65A42F
triadic
#9FA42F #2F9FA4 #A42F9F
tetradic
#9FA42F #2FA46F #342FA4 #A42F65
square
#9FA42F #2FA46F #342FA4 #A42F65
split-complementary
#9FA42F #2F65A4 #6F2FA4
monochromatic
#434514 #717421 #9FA42F #C4CA46 #D3D876

Accessibility & contrast

On white

2.68
#9FA42F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.83
#9FA42F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9FA42F
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9FA42F#FFFFFF#000000##000000
##9FA42F1.002.687.837.83
#FFFFFF2.681.0021.0021.00
#0000007.8321.001.001.00
##0000007.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#B19C1B
Deuteranopia (green-blind)
#B19F38
Tritanopia (blue-blind)
#AA9A8D
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #9fa42f;
/* rgb */ color: rgb(159, 164, 47);
/* oklch */ color: oklch(69.3% 0.136 111.9);
Tailwind
colors: {
  custom: {
    50: '#bfbe70',
    500: '#9fa42f',
    950: '#000000',
  },
}
SCSS
$custom: #9fa42f;
$custom-light: #bfbe70;
$custom-dark: #000000;
JSON
{
  "hex": "#9fa42f",
  "rgb": {
    "r": 159,
    "g": 164,
    "b": 47
  },
  "hsl": {
    "h": 62.564,
    "s": 55.45,
    "l": 41.373
  },
  "oklch": {
    "l": 0.6932,
    "c": 0.13581,
    "h": 111.9
  },
  "luminance": 0.34127
}

Semantic roles & 50–950 ramp

primary
#9FA42F
secondary
#736FC0
accent
#49DF4F
background
#FCFBF7
surface
#F8F6ED
border
#D1D0C8
text
#131208
muted
#82817B

Preview Lab

Preview with #9FA42F

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

Preview Lab → · Contrast checker → · Palette generator →

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