#9FA42B#9FA42B

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

Color values

HEX#9FA42B
RGBrgb(159, 164, 43)
HSLhsl(62, 58%, 41%)
HSVhsv(62, 74%, 64%)
CMYKcmyk(3%, 0%, 73.8%, 35.7%)
CIE-LABlab(65.04, -16.57, 58.14)
CIE-LCHlch(65.04, 60.45, 105.91°)
OKLaboklab(69.29% -0.0516 0.1283)
OKLCHoklch(69.29% 0.138 111.9)
XYZxyz(28.0105, 34.0970, 7.3909)
Luminance0.3410 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9FA42B #302BA4
analogous
#A46C2B #9FA42B #63A42B
triadic
#9FA42B #2B9FA4 #A42B9F
tetradic
#9FA42B #2BA46C #302BA4 #A42B63
square
#9FA42B #2BA46C #302BA4 #A42B63
split-complementary
#9FA42B #2B63A4 #6C2BA4
monochromatic
#414312 #70741E #9FA42B #C7CD3F #D5D970

Accessibility & contrast

On white

2.69
#9FA42B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.82
#9FA42B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9FA42B
7.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9FA42B#FFFFFF#000000##000000
##9FA42B1.002.697.827.82
#FFFFFF2.691.0021.0021.00
#0000007.8221.001.001.00
##0000007.8221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9fa42b;
/* rgb */ color: rgb(159, 164, 43);
/* oklch */ color: oklch(69.3% 0.138 111.9);
Tailwind
colors: {
  custom: {
    50: '#bfbe6e',
    500: '#9fa42b',
    950: '#000000',
  },
}
SCSS
$custom: #9fa42b;
$custom-light: #bfbe6e;
$custom-dark: #000000;
JSON
{
  "hex": "#9fa42b",
  "rgb": {
    "r": 159,
    "g": 164,
    "b": 43
  },
  "hsl": {
    "h": 62.479,
    "s": 58.454,
    "l": 40.588
  },
  "oklch": {
    "l": 0.69293,
    "c": 0.13829,
    "h": 111.9
  },
  "luminance": 0.34096
}

Semantic roles & 50–950 ramp

primary
#9FA42B
secondary
#6E6AC1
accent
#46E24D
background
#FCFBF6
surface
#F8F6EC
border
#D1D0C7
text
#131208
muted
#82817B

Preview Lab

Preview with #9FA42B

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

Preview Lab → · Contrast checker → · Palette generator →

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