#9FA02F#9FA02F

#9FA02F is a light, vivid yellow. Relative luminance 0.327; OKLCH L 68.4% C 0.132 H 109.9°. Best body text is #000000 at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#9FA02F
RGBrgb(159, 160, 47)
HSLhsl(61, 55%, 41%)
HSVhsv(61, 71%, 63%)
CMYKcmyk(0.6%, 0%, 70.6%, 37.3%)
CIE-LABlab(63.93, -14.31, 55.61)
CIE-LCHlch(63.93, 57.42, 104.43°)
OKLaboklab(68.42% -0.0448 0.1237)
OKLCHoklch(68.42% 0.132 109.9)
XYZxyz(27.3829, 32.7186, 7.5616)
Luminance0.3272 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9FA02F #302FA0
analogous
#A0682F #9FA02F #66A02F
triadic
#9FA02F #2F9FA0 #A02F9F
tetradic
#9FA02F #2FA068 #302FA0 #A02F66
square
#9FA02F #2FA068 #302FA0 #A02F66
split-complementary
#9FA02F #2F66A0 #682FA0
monochromatic
#414113 #707121 #9FA02F #C7C844 #D5D673

Accessibility & contrast

On white

2.78
#9FA02F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.54
#9FA02F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9FA02F
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9FA02F#FFFFFF#000000##000000
##9FA02F1.002.787.547.54
#FFFFFF2.781.0021.0021.00
#0000007.5421.001.001.00
##0000007.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#AD991C
Deuteranopia (green-blind)
#AE9D37
Tritanopia (blue-blind)
#AA968A
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #9fa02f;
/* rgb */ color: rgb(159, 160, 47);
/* oklch */ color: oklch(68.4% 0.132 109.9);
Tailwind
colors: {
  custom: {
    50: '#bfbb6f',
    500: '#9fa02f',
    950: '#000000',
  },
}
SCSS
$custom: #9fa02f;
$custom-light: #bfbb6f;
$custom-dark: #000000;
JSON
{
  "hex": "#9fa02f",
  "rgb": {
    "r": 159,
    "g": 160,
    "b": 47
  },
  "hsl": {
    "h": 60.531,
    "s": 54.589,
    "l": 40.588
  },
  "oklch": {
    "l": 0.68416,
    "c": 0.13157,
    "h": 109.9
  },
  "luminance": 0.32718
}

Semantic roles & 50–950 ramp

primary
#9FA02F
secondary
#6E6DBE
accent
#4ADE4B
background
#FCFBF7
surface
#F8F6ED
border
#D1D0C8
text
#131108
muted
#82807B

Preview Lab

Preview with #9FA02F

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

Preview Lab → · Contrast checker → · Palette generator →

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