#9FA12A#9FA12A

#9FA12A is a light, vivid yellow. Relative luminance 0.330; OKLCH L 68.6% C 0.136 H 110.5°. Best body text is #000000 at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#9FA12A
RGBrgb(159, 161, 42)
HSLhsl(61, 59%, 40%)
HSVhsv(61, 74%, 63%)
CMYKcmyk(1.2%, 0%, 73.9%, 36.9%)
CIE-LABlab(64.18, -15.07, 57.68)
CIE-LCHlch(64.18, 59.62, 104.65°)
OKLaboklab(68.61% -0.0475 0.1272)
OKLCHoklch(68.61% 0.136 110.5)
XYZxyz(27.4618, 33.0286, 7.1186)
Luminance0.3303 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9FA12A #2C2AA1
analogous
#A1672A #9FA12A #64A12A
triadic
#9FA12A #2A9FA1 #A12A9F
tetradic
#9FA12A #2AA167 #2C2AA1 #A12A64
square
#9FA12A #2AA167 #2C2AA1 #A12A64
split-complementary
#9FA12A #2A64A1 #672AA1
monochromatic
#3F4011 #6F701D #9FA12A #CACC3C #D7D96D

Accessibility & contrast

On white

2.76
#9FA12A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.61
#9FA12A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9FA12A
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9FA12A#FFFFFF#000000##000000
##9FA12A1.002.767.617.61
#FFFFFF2.761.0021.0021.00
#0000007.6121.001.001.00
##0000007.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#AE9A12
Deuteranopia (green-blind)
#AF9D33
Tritanopia (blue-blind)
#AA978A
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #9fa12a;
/* rgb */ color: rgb(159, 161, 42);
/* oklch */ color: oklch(68.6% 0.136 110.5);
Tailwind
colors: {
  custom: {
    50: '#bfbc6d',
    500: '#9fa12a',
    950: '#000000',
  },
}
SCSS
$custom: #9fa12a;
$custom-light: #bfbc6d;
$custom-dark: #000000;
JSON
{
  "hex": "#9fa12a",
  "rgb": {
    "r": 159,
    "g": 161,
    "b": 42
  },
  "hsl": {
    "h": 61.008,
    "s": 58.621,
    "l": 39.804
  },
  "oklch": {
    "l": 0.68607,
    "c": 0.13574,
    "h": 110.5
  },
  "luminance": 0.33028
}

Semantic roles & 50–950 ramp

primary
#9FA12A
secondary
#6967C0
accent
#46E249
background
#FCFBF6
surface
#F8F6EC
border
#D1D0C7
text
#131207
muted
#82817A

Preview Lab

Preview with #9FA12A

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

Preview Lab → · Contrast checker → · Palette generator →

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