#9FA12C#9FA12C

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

Color values

HEX#9FA12C
RGBrgb(159, 161, 44)
HSLhsl(61, 57%, 40%)
HSVhsv(61, 73%, 63%)
CMYKcmyk(1.2%, 0%, 72.7%, 36.9%)
CIE-LABlab(64.20, -14.98, 56.98)
CIE-LCHlch(64.20, 58.91, 104.73°)
OKLaboklab(68.62% -0.047 0.126)
OKLCHoklch(68.62% 0.135 110.5)
XYZxyz(27.4985, 33.0433, 7.3118)
Luminance0.3304 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9FA12C #2E2CA1
analogous
#A1692C #9FA12C #64A12C
triadic
#9FA12C #2C9FA1 #A12C9F
tetradic
#9FA12C #2CA169 #2E2CA1 #A12C64
square
#9FA12C #2CA169 #2E2CA1 #A12C64
split-complementary
#9FA12C #2C64A1 #692CA1
monochromatic
#404112 #70711F #9FA12C #C8CB40 #D6D870

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9FA12C#FFFFFF#000000##000000
##9FA12C1.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)
#AE9A16
Deuteranopia (green-blind)
#AF9D35
Tritanopia (blue-blind)
#AA978A
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #9fa12c;
/* rgb */ color: rgb(159, 161, 44);
/* oklch */ color: oklch(68.6% 0.135 110.5);
Tailwind
colors: {
  custom: {
    50: '#bfbc6e',
    500: '#9fa12c',
    950: '#000000',
  },
}
SCSS
$custom: #9fa12c;
$custom-light: #bfbc6e;
$custom-dark: #000000;
JSON
{
  "hex": "#9fa12c",
  "rgb": {
    "r": 159,
    "g": 161,
    "b": 44
  },
  "hsl": {
    "h": 61.026,
    "s": 57.073,
    "l": 40.196
  },
  "oklch": {
    "l": 0.6862,
    "c": 0.13452,
    "h": 110.5
  },
  "luminance": 0.33043
}

Semantic roles & 50–950 ramp

primary
#9FA12C
secondary
#6B6ABF
accent
#47E04A
background
#FCFBF6
surface
#F8F6EC
border
#D1D0C7
text
#131208
muted
#82817B

Preview Lab

Preview with #9FA12C

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

Preview Lab → · Contrast checker → · Palette generator →

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