#9FAC2B#9FAC2B

#9FAC2B is a light, vivid yellow. Relative luminance 0.370; OKLCH L 71.1% C 0.147 H 115.3°. Best body text is #000000 at 8.41:1 contrast (WCAG AA passes).

Color values

HEX#9FAC2B
RGBrgb(159, 172, 43)
HSLhsl(66, 60%, 42%)
HSVhsv(66, 75%, 67%)
CMYKcmyk(7.6%, 0%, 75%, 32.5%)
CIE-LABlab(67.32, -20.63, 60.29)
CIE-LCHlch(67.32, 63.72, 108.89°)
OKLaboklab(71.12% -0.0628 0.1329)
OKLCHoklch(71.12% 0.147 115.3)
XYZxyz(29.4875, 37.0509, 7.8832)
Luminance0.3705 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9FAC2B #382BAC
analogous
#AC792B #9FAC2B #5EAC2B
triadic
#9FAC2B #2B9FAC #AC2B9F
tetradic
#9FAC2B #2BAC79 #382BAC #AC2B5E
square
#9FAC2B #2BAC79 #382BAC #AC2B5E
split-complementary
#9FAC2B #2B5EAC #792BAC
monochromatic
#444A13 #727B1F #9FAC2B #C2D044 #D2DC75

Accessibility & contrast

On white

2.50
#9FAC2B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.41
#9FAC2B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9FAC2B
8.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9FAC2B#FFFFFF#000000##000000
##9FAC2B1.002.508.418.41
#FFFFFF2.501.0021.0021.00
#0000008.4121.001.001.00
##0000008.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#B8A30E
Deuteranopia (green-blind)
#B8A536
Tritanopia (blue-blind)
#A9A294
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #9fac2b;
/* rgb */ color: rgb(159, 172, 43);
/* oklch */ color: oklch(71.1% 0.147 115.3);
Tailwind
colors: {
  custom: {
    50: '#bfc46f',
    500: '#9fac2b',
    950: '#000000',
  },
}
SCSS
$custom: #9fac2b;
$custom-light: #bfc46f;
$custom-dark: #000000;
JSON
{
  "hex": "#9fac2b",
  "rgb": {
    "r": 159,
    "g": 172,
    "b": 43
  },
  "hsl": {
    "h": 66.047,
    "s": 60,
    "l": 42.157
  },
  "oklch": {
    "l": 0.71117,
    "c": 0.14698,
    "h": 115.3
  },
  "luminance": 0.3705
}

Semantic roles & 50–950 ramp

primary
#9FAC2B
secondary
#776FC4
accent
#45E355
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131208
muted
#82817B

Preview Lab

Preview with #9FAC2B

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

Preview Lab → · Contrast checker → · Palette generator →

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