#9FA342#9FA342

#9FA342 is a light, vivid yellow. Relative luminance 0.340; OKLCH L 69.3% C 0.120 H 111.4°. Best body text is #000000 at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#9FA342
RGBrgb(159, 163, 66)
HSLhsl(62, 42%, 45%)
HSVhsv(62, 60%, 64%)
CMYKcmyk(2.5%, 0%, 59.5%, 36.1%)
CIE-LABlab(64.93, -14.65, 48.66)
CIE-LCHlch(64.93, 50.82, 106.75°)
OKLaboklab(69.26% -0.0438 0.112)
OKLCHoklch(69.26% 0.12 111.4)
XYZxyz(28.3794, 33.9593, 10.2130)
Luminance0.3396 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9FA342 #4642A3
analogous
#A37642 #9FA342 #6FA342
triadic
#9FA342 #429FA3 #A3429F
tetradic
#9FA342 #42A376 #4642A3 #A3426F
square
#9FA342 #42A376 #4642A3 #A3426F
split-complementary
#9FA342 #426FA3 #7642A3
monochromatic
#4A4C1F #757730 #9FA342 #BCC063 #CFD18E

Accessibility & contrast

On white

2.70
#9FA342 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.79
#9FA342 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9FA342
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9FA342#FFFFFF#000000##000000
##9FA3421.002.707.797.79
#FFFFFF2.701.0021.0021.00
#0000007.7921.001.001.00
##0000007.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#AF9C37
Deuteranopia (green-blind)
#AF9F48
Tritanopia (blue-blind)
#A99A8E
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #9fa342;
/* rgb */ color: rgb(159, 163, 66);
/* oklch */ color: oklch(69.3% 0.120 111.4);
Tailwind
colors: {
  custom: {
    50: '#bebe7a',
    500: '#9fa342',
    950: '#000000',
  },
}
SCSS
$custom: #9fa342;
$custom-light: #bebe7a;
$custom-dark: #000000;
JSON
{
  "hex": "#9fa342",
  "rgb": {
    "r": 159,
    "g": 163,
    "b": 66
  },
  "hsl": {
    "h": 62.474,
    "s": 42.358,
    "l": 44.902
  },
  "oklch": {
    "l": 0.69261,
    "c": 0.12023,
    "h": 111.4
  },
  "luminance": 0.33959
}

Semantic roles & 50–950 ramp

primary
#9FA342
secondary
#8784BC
accent
#56D25B
background
#FBFBF7
surface
#F7F6EE
border
#D0D0C9
text
#121209
muted
#81817B

Preview Lab

Preview with #9FA342

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

Preview Lab → · Contrast checker → · Palette generator →

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