#9FA81C#9FA81C

#9FA81C is a light, vivid yellow. Relative luminance 0.355; OKLCH L 70.1% C 0.150 H 113.6°. Best body text is #000000 at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#9FA81C
RGBrgb(159, 168, 28)
HSLhsl(64, 71%, 38%)
HSVhsv(64, 83%, 66%)
CMYKcmyk(5.4%, 0%, 83.3%, 34.1%)
CIE-LABlab(66.11, -19.20, 63.63)
CIE-LCHlch(66.11, 66.47, 106.79°)
OKLaboklab(70.13% -0.06 0.1373)
OKLCHoklch(70.13% 0.15 113.6)
XYZxyz(28.5113, 35.4607, 6.4411)
Luminance0.3546 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9FA81C #251CA8
analogous
#A86B1C #9FA81C #59A81C
triadic
#9FA81C #1C9FA8 #A81C9F
tetradic
#9FA81C #1CA86B #251CA8 #A81C59
square
#9FA81C #1CA86B #251CA8 #A81C59
split-complementary
#9FA81C #1C59A8 #6B1CA8
monochromatic
#3C3F0B #6D7413 #9FA81C #CFDB26 #DBE45B

Accessibility & contrast

On white

2.60
#9FA81C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.09
#9FA81C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9FA81C
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9FA81C#FFFFFF#000000##000000
##9FA81C1.002.608.098.09
#FFFFFF2.601.0021.0021.00
#0000008.0921.001.001.00
##0000008.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#B59F00
Deuteranopia (green-blind)
#B5A22B
Tritanopia (blue-blind)
#AA9D8F
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #9fa81c;
/* rgb */ color: rgb(159, 168, 28);
/* oklch */ color: oklch(70.1% 0.150 113.6);
Tailwind
colors: {
  custom: {
    50: '#bfc168',
    500: '#9fa81c',
    950: '#000000',
  },
}
SCSS
$custom: #9fa81c;
$custom-light: #bfc168;
$custom-dark: #000000;
JSON
{
  "hex": "#9fa81c",
  "rgb": {
    "r": 159,
    "g": 168,
    "b": 28
  },
  "hsl": {
    "h": 63.857,
    "s": 71.429,
    "l": 38.431
  },
  "oklch": {
    "l": 0.70125,
    "c": 0.14989,
    "h": 113.6
  },
  "luminance": 0.3546
}

Semantic roles & 50–950 ramp

primary
#9FA81C
secondary
#5F58C7
accent
#3AEE45
background
#FCFBF6
surface
#F8F7EB
border
#D1D0C6
text
#131207
muted
#82817A

Preview Lab

Preview with #9FA81C

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

Preview Lab → · Contrast checker → · Palette generator →

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