#9FA42C#9FA42C

#9FA42C 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#9FA42C
RGBrgb(159, 164, 44)
HSLhsl(63, 58%, 41%)
HSVhsv(63, 73%, 64%)
CMYKcmyk(3%, 0%, 73.2%, 35.7%)
CIE-LABlab(65.05, -16.53, 57.79)
CIE-LCHlch(65.05, 60.11, 105.96°)
OKLaboklab(69.3% -0.0513 0.1278)
OKLCHoklch(69.3% 0.138 111.9)
XYZxyz(28.0291, 34.1044, 7.4887)
Luminance0.3410 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9FA42C #312CA4
analogous
#A46D2C #9FA42C #63A42C
triadic
#9FA42C #2C9FA4 #A42C9F
tetradic
#9FA42C #2CA46D #312CA4 #A42C63
square
#9FA42C #2CA46D #312CA4 #A42C63
split-complementary
#9FA42C #2C63A4 #6D2CA4
monochromatic
#414312 #70741F #9FA42C #C6CC41 #D5D971

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9FA42C#FFFFFF#000000##000000
##9FA42C1.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)
#B19C15
Deuteranopia (green-blind)
#B19F36
Tritanopia (blue-blind)
#AA9A8D
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #9fa42c;
/* rgb */ color: rgb(159, 164, 44);
/* oklch */ color: oklch(69.3% 0.138 111.9);
Tailwind
colors: {
  custom: {
    50: '#bfbe6e',
    500: '#9fa42c',
    950: '#000000',
  },
}
SCSS
$custom: #9fa42c;
$custom-light: #bfbe6e;
$custom-dark: #000000;
JSON
{
  "hex": "#9fa42c",
  "rgb": {
    "r": 159,
    "g": 164,
    "b": 44
  },
  "hsl": {
    "h": 62.5,
    "s": 57.692,
    "l": 40.784
  },
  "oklch": {
    "l": 0.69299,
    "c": 0.13769,
    "h": 111.9
  },
  "luminance": 0.34104
}

Semantic roles & 50–950 ramp

primary
#9FA42C
secondary
#6F6BC0
accent
#47E14D
background
#FCFBF6
surface
#F8F6EC
border
#D1D0C7
text
#131208
muted
#82817B

Preview Lab

Preview with #9FA42C

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

Preview Lab → · Contrast checker → · Palette generator →

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