#9FA81F#9FA81F

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

Color values

HEX#9FA81F
RGBrgb(159, 168, 31)
HSLhsl(64, 69%, 39%)
HSVhsv(64, 82%, 66%)
CMYKcmyk(5.4%, 0%, 81.5%, 34.1%)
CIE-LABlab(66.12, -19.10, 62.86)
CIE-LCHlch(66.12, 65.70, 106.90°)
OKLaboklab(70.14% -0.0596 0.1362)
OKLCHoklch(70.14% 0.149 113.6)
XYZxyz(28.5490, 35.4757, 6.6397)
Luminance0.3548 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9FA81F #281FA8
analogous
#A86D1F #9FA81F #5BA81F
triadic
#9FA81F #1F9FA8 #A81F9F
tetradic
#9FA81F #1FA86D #281FA8 #A81F5B
square
#9FA81F #1FA86D #281FA8 #A81F5B
split-complementary
#9FA81F #1F5BA8 #6D1FA8
monochromatic
#3D410C #6E7415 #9FA81F #CDD82C #D9E260

Accessibility & contrast

On white

2.59
#9FA81F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##9FA81F#FFFFFF#000000##000000
##9FA81F1.002.598.098.09
#FFFFFF2.591.0021.0021.00
#0000008.0921.001.001.00
##0000008.0921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9fa81f;
/* rgb */ color: rgb(159, 168, 31);
/* oklch */ color: oklch(70.1% 0.149 113.6);
Tailwind
colors: {
  custom: {
    50: '#bfc169',
    500: '#9fa81f',
    950: '#000000',
  },
}
SCSS
$custom: #9fa81f;
$custom-light: #bfc169;
$custom-dark: #000000;
JSON
{
  "hex": "#9fa81f",
  "rgb": {
    "r": 159,
    "g": 168,
    "b": 31
  },
  "hsl": {
    "h": 63.942,
    "s": 68.844,
    "l": 39.02
  },
  "oklch": {
    "l": 0.70138,
    "c": 0.14865,
    "h": 113.6
  },
  "luminance": 0.35475
}

Semantic roles & 50–950 ramp

primary
#9FA81F
secondary
#645DC6
accent
#3CEC48
background
#FCFBF6
surface
#F8F7EB
border
#D1D0C6
text
#131207
muted
#82817A

Preview Lab

Preview with #9FA81F

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

Preview Lab → · Contrast checker → · Palette generator →

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