#9FA01F#9FA01F

#9FA01F is a light, vivid yellow. Relative luminance 0.326; OKLCH L 68.3% C 0.140 H 110.1°. Best body text is #000000 at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#9FA01F
RGBrgb(159, 160, 31)
HSLhsl(60, 68%, 37%)
HSVhsv(60, 81%, 63%)
CMYKcmyk(0.6%, 0%, 80.6%, 37.3%)
CIE-LABlab(63.85, -15.00, 60.88)
CIE-LCHlch(63.85, 62.70, 103.85°)
OKLaboklab(68.32% -0.0482 0.1319)
OKLCHoklch(68.32% 0.14 110.1)
XYZxyz(27.1172, 32.6123, 6.1624)
Luminance0.3261 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9FA01F #201FA0
analogous
#A0601F #9FA01F #5FA01F
triadic
#9FA01F #1F9FA0 #A01F9F
tetradic
#9FA01F #1FA060 #201FA0 #A01F5F
square
#9FA01F #1FA060 #201FA0 #A01F5F
split-complementary
#9FA01F #1F5FA0 #601FA0
monochromatic
#39390B #6C6D15 #9FA01F #D2D329 #DEDF5A

Accessibility & contrast

On white

2.79
#9FA01F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.52
#9FA01F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9FA01F
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9FA01F#FFFFFF#000000##000000
##9FA01F1.002.797.527.52
#FFFFFF2.791.0021.0021.00
#0000007.5221.001.001.00
##0000007.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#AD9900
Deuteranopia (green-blind)
#AF9C2B
Tritanopia (blue-blind)
#AB9589
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #9fa01f;
/* rgb */ color: rgb(159, 160, 31);
/* oklch */ color: oklch(68.3% 0.140 110.1);
Tailwind
colors: {
  custom: {
    50: '#bfbb68',
    500: '#9fa01f',
    950: '#000000',
  },
}
SCSS
$custom: #9fa01f;
$custom-light: #bfbb68;
$custom-dark: #000000;
JSON
{
  "hex": "#9fa01f",
  "rgb": {
    "r": 159,
    "g": 160,
    "b": 31
  },
  "hsl": {
    "h": 60.465,
    "s": 67.539,
    "l": 37.451
  },
  "oklch": {
    "l": 0.68319,
    "c": 0.14047,
    "h": 110.1
  },
  "luminance": 0.32611
}

Semantic roles & 50–950 ramp

primary
#9FA01F
secondary
#5958C3
accent
#3DEA3F
background
#FCFBF6
surface
#F8F6EB
border
#D1D0C6
text
#131107
muted
#82807A

Preview Lab

Preview with #9FA01F

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

Preview Lab → · Contrast checker → · Palette generator →

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