#9FA22A#9FA22A

#9FA22A is a light, vivid yellow. Relative luminance 0.334; OKLCH L 68.8% C 0.137 H 111.0°. Best body text is #000000 at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#9FA22A
RGBrgb(159, 162, 42)
HSLhsl(62, 59%, 40%)
HSVhsv(62, 74%, 64%)
CMYKcmyk(1.9%, 0%, 74.1%, 36.5%)
CIE-LABlab(64.47, -15.59, 57.95)
CIE-LCHlch(64.47, 60.01, 105.06°)
OKLaboklab(68.83% -0.0489 0.1277)
OKLCHoklch(68.83% 0.137 111)
XYZxyz(27.6373, 33.3795, 7.1771)
Luminance0.3338 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9FA22A #2D2AA2
analogous
#A2692A #9FA22A #63A22A
triadic
#9FA22A #2A9FA2 #A22A9F
tetradic
#9FA22A #2AA269 #2D2AA2 #A22A63
square
#9FA22A #2AA269 #2D2AA2 #A22A63
split-complementary
#9FA22A #2A63A2 #692AA2
monochromatic
#404111 #6F711D #9FA22A #C9CD3D #D7D96D

Accessibility & contrast

On white

2.74
#9FA22A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.68
#9FA22A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9FA22A
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9FA22A#FFFFFF#000000##000000
##9FA22A1.002.747.687.68
#FFFFFF2.741.0021.0021.00
#0000007.6821.001.001.00
##0000007.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#AF9B11
Deuteranopia (green-blind)
#B09E34
Tritanopia (blue-blind)
#AA988B
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #9fa22a;
/* rgb */ color: rgb(159, 162, 42);
/* oklch */ color: oklch(68.8% 0.137 111.0);
Tailwind
colors: {
  custom: {
    50: '#bfbd6d',
    500: '#9fa22a',
    950: '#000000',
  },
}
SCSS
$custom: #9fa22a;
$custom-light: #bfbd6d;
$custom-dark: #000000;
JSON
{
  "hex": "#9fa22a",
  "rgb": {
    "r": 159,
    "g": 162,
    "b": 42
  },
  "hsl": {
    "h": 61.5,
    "s": 58.824,
    "l": 40
  },
  "oklch": {
    "l": 0.68833,
    "c": 0.13678,
    "h": 111
  },
  "luminance": 0.33379
}

Semantic roles & 50–950 ramp

primary
#9FA22A
secondary
#6A68C0
accent
#46E24A
background
#FCFBF6
surface
#F8F6EC
border
#D1D0C7
text
#131207
muted
#82817A

Preview Lab

Preview with #9FA22A

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

Preview Lab → · Contrast checker → · Palette generator →

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