#9FA12F#9FA12F

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

Color values

HEX#9FA12F
RGBrgb(159, 161, 47)
HSLhsl(61, 55%, 41%)
HSVhsv(61, 71%, 63%)
CMYKcmyk(1.2%, 0%, 70.8%, 36.9%)
CIE-LABlab(64.21, -14.82, 55.88)
CIE-LCHlch(64.21, 57.82, 104.86°)
OKLaboklab(68.64% -0.0463 0.1243)
OKLCHoklch(68.64% 0.133 110.4)
XYZxyz(27.5570, 33.0667, 7.6197)
Luminance0.3307 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9FA12F #312FA1
analogous
#A16A2F #9FA12F #66A12F
triadic
#9FA12F #2F9FA1 #A12F9F
tetradic
#9FA12F #2FA16A #312FA1 #A12F66
square
#9FA12F #2FA16A #312FA1 #A12F66
split-complementary
#9FA12F #2F66A1 #6A2FA1
monochromatic
#414213 #707221 #9FA12F #C6C945 #D5D674

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9FA12F#FFFFFF#000000##000000
##9FA12F1.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)
#AE9A1C
Deuteranopia (green-blind)
#AF9D37
Tritanopia (blue-blind)
#AA978B
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #9fa12f;
/* rgb */ color: rgb(159, 161, 47);
/* oklch */ color: oklch(68.6% 0.133 110.4);
Tailwind
colors: {
  custom: {
    50: '#bfbc6f',
    500: '#9fa12f',
    950: '#000000',
  },
}
SCSS
$custom: #9fa12f;
$custom-light: #bfbc6f;
$custom-dark: #000000;
JSON
{
  "hex": "#9fa12f",
  "rgb": {
    "r": 159,
    "g": 161,
    "b": 47
  },
  "hsl": {
    "h": 61.053,
    "s": 54.808,
    "l": 40.784
  },
  "oklch": {
    "l": 0.68641,
    "c": 0.13261,
    "h": 110.4
  },
  "luminance": 0.33066
}

Semantic roles & 50–950 ramp

primary
#9FA12F
secondary
#6F6EBE
accent
#4ADE4C
background
#FCFBF7
surface
#F8F6ED
border
#D1D0C8
text
#131208
muted
#82817B

Preview Lab

Preview with #9FA12F

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

Preview Lab → · Contrast checker → · Palette generator →

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