#9FA42E#9FA42E

#9FA42E 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.82:1 contrast (WCAG AA passes).

Color values

HEX#9FA42E
RGBrgb(159, 164, 46)
HSLhsl(63, 56%, 41%)
HSVhsv(63, 72%, 64%)
CMYKcmyk(3%, 0%, 72%, 35.7%)
CIE-LABlab(65.06, -16.43, 57.08)
CIE-LCHlch(65.06, 59.39, 106.05°)
OKLaboklab(69.31% -0.0509 0.1266)
OKLCHoklch(69.31% 0.136 111.9)
XYZxyz(28.0676, 34.1198, 7.6915)
Luminance0.3412 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9FA42E #332EA4
analogous
#A46E2E #9FA42E #64A42E
triadic
#9FA42E #2E9FA4 #A42E9F
tetradic
#9FA42E #2EA46E #332EA4 #A42E64
square
#9FA42E #2EA46E #332EA4 #A42E64
split-complementary
#9FA42E #2E64A4 #6E2EA4
monochromatic
#424413 #717421 #9FA42E #C5CB45 #D4D874

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9FA42E#FFFFFF#000000##000000
##9FA42E1.002.687.827.82
#FFFFFF2.681.0021.0021.00
#0000007.8221.001.001.00
##0000007.8221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9fa42e;
/* rgb */ color: rgb(159, 164, 46);
/* oklch */ color: oklch(69.3% 0.136 111.9);
Tailwind
colors: {
  custom: {
    50: '#bfbe6f',
    500: '#9fa42e',
    950: '#000000',
  },
}
SCSS
$custom: #9fa42e;
$custom-light: #bfbe6f;
$custom-dark: #000000;
JSON
{
  "hex": "#9fa42e",
  "rgb": {
    "r": 159,
    "g": 164,
    "b": 46
  },
  "hsl": {
    "h": 62.542,
    "s": 56.19,
    "l": 41.176
  },
  "oklch": {
    "l": 0.69313,
    "c": 0.13646,
    "h": 111.9
  },
  "luminance": 0.34119
}

Semantic roles & 50–950 ramp

primary
#9FA42E
secondary
#716EC0
accent
#48DF4F
background
#FCFBF7
surface
#F8F6ED
border
#D1D0C8
text
#131208
muted
#82817B

Preview Lab

Preview with #9FA42E

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

Preview Lab → · Contrast checker → · Palette generator →

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