#9FA02B#9FA02B

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

Color values

HEX#9FA02B
RGBrgb(159, 160, 43)
HSLhsl(61, 58%, 40%)
HSVhsv(61, 73%, 63%)
CMYKcmyk(0.6%, 0%, 73.1%, 37.3%)
CIE-LABlab(63.91, -14.51, 57.06)
CIE-LCHlch(63.91, 58.88, 104.26°)
OKLaboklab(68.39% -0.0458 0.126)
OKLCHoklch(68.39% 0.134 110)
XYZxyz(27.3059, 32.6877, 7.1560)
Luminance0.3269 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9FA02B #2C2BA0
analogous
#A0672B #9FA02B #64A02B
triadic
#9FA02B #2B9FA0 #A02B9F
tetradic
#9FA02B #2BA067 #2C2BA0 #A02B64
square
#9FA02B #2BA067 #2C2BA0 #A02B64
split-complementary
#9FA02B #2B64A0 #672BA0
monochromatic
#3F4011 #6F701E #9FA02B #CACB3D #D7D86E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9FA02B#FFFFFF#000000##000000
##9FA02B1.002.797.547.54
#FFFFFF2.791.0021.0021.00
#0000007.5421.001.001.00
##0000007.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#AD9914
Deuteranopia (green-blind)
#AE9C34
Tritanopia (blue-blind)
#AA9689
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #9fa02b;
/* rgb */ color: rgb(159, 160, 43);
/* oklch */ color: oklch(68.4% 0.134 110.0);
Tailwind
colors: {
  custom: {
    50: '#bfbb6d',
    500: '#9fa02b',
    950: '#000000',
  },
}
SCSS
$custom: #9fa02b;
$custom-light: #bfbb6d;
$custom-dark: #000000;
JSON
{
  "hex": "#9fa02b",
  "rgb": {
    "r": 159,
    "g": 160,
    "b": 43
  },
  "hsl": {
    "h": 60.513,
    "s": 57.635,
    "l": 39.804
  },
  "oklch": {
    "l": 0.68387,
    "c": 0.1341,
    "h": 110
  },
  "luminance": 0.32687
}

Semantic roles & 50–950 ramp

primary
#9FA02B
secondary
#6968BF
accent
#47E148
background
#FCFBF6
surface
#F8F6EC
border
#D1D0C7
text
#131107
muted
#82807A

Preview Lab

Preview with #9FA02B

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

Preview Lab → · Contrast checker → · Palette generator →

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