#9FA12B#9FA12B

#9FA12B 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#9FA12B
RGBrgb(159, 161, 43)
HSLhsl(61, 58%, 40%)
HSVhsv(61, 73%, 63%)
CMYKcmyk(1.2%, 0%, 73.3%, 36.9%)
CIE-LABlab(64.19, -15.03, 57.33)
CIE-LCHlch(64.19, 59.27, 104.69°)
OKLaboklab(68.61% -0.0472 0.1266)
OKLCHoklch(68.61% 0.135 110.5)
XYZxyz(27.4799, 33.0358, 7.2140)
Luminance0.3303 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9FA12B #2D2BA1
analogous
#A1682B #9FA12B #64A12B
triadic
#9FA12B #2B9FA1 #A12B9F
tetradic
#9FA12B #2BA168 #2D2BA1 #A12B64
square
#9FA12B #2BA168 #2D2BA1 #A12B64
split-complementary
#9FA12B #2B64A1 #682BA1
monochromatic
#404011 #6F711E #9FA12B #C9CB3E #D6D86E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9FA12B#FFFFFF#000000##000000
##9FA12B1.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)
#AE9A14
Deuteranopia (green-blind)
#AF9D34
Tritanopia (blue-blind)
#AA978A
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #9fa12b;
/* rgb */ color: rgb(159, 161, 43);
/* oklch */ color: oklch(68.6% 0.135 110.5);
Tailwind
colors: {
  custom: {
    50: '#bfbc6d',
    500: '#9fa12b',
    950: '#000000',
  },
}
SCSS
$custom: #9fa12b;
$custom-light: #bfbc6d;
$custom-dark: #000000;
JSON
{
  "hex": "#9fa12b",
  "rgb": {
    "r": 159,
    "g": 161,
    "b": 43
  },
  "hsl": {
    "h": 61.017,
    "s": 57.843,
    "l": 40
  },
  "oklch": {
    "l": 0.68613,
    "c": 0.13514,
    "h": 110.5
  },
  "luminance": 0.33035
}

Semantic roles & 50–950 ramp

primary
#9FA12B
secondary
#6A69BF
accent
#47E149
background
#FCFBF6
surface
#F8F6EC
border
#D1D0C7
text
#131208
muted
#82817B

Preview Lab

Preview with #9FA12B

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

Preview Lab → · Contrast checker → · Palette generator →

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