#9FAF2B#9FAF2B

#9FAF2B is a light, vivid yellow. Relative luminance 0.382; OKLCH L 71.8% C 0.150 H 116.5°. Best body text is #000000 at 8.64:1 contrast (WCAG AA passes).

Color values

HEX#9FAF2B
RGBrgb(159, 175, 43)
HSLhsl(67, 61%, 43%)
HSVhsv(67, 75%, 69%)
CMYKcmyk(9.1%, 0%, 75.4%, 31.4%)
CIE-LABlab(68.17, -22.13, 61.09)
CIE-LCHlch(68.17, 64.98, 109.91°)
OKLaboklab(71.8% -0.067 0.1346)
OKLCHoklch(71.8% 0.15 116.5)
XYZxyz(30.0649, 38.2057, 8.0757)
Luminance0.3821 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9FAF2B #3B2BAF
analogous
#AF7D2B #9FAF2B #5DAF2B
triadic
#9FAF2B #2B9FAF #AF2B9F
tetradic
#9FAF2B #2BAF7D #3B2BAF #AF2B5D
square
#9FAF2B #2BAF7D #3B2BAF #AF2B5D
split-complementary
#9FAF2B #2B5DAF #7D2BAF
monochromatic
#464D13 #727E1F #9FAF2B #C1D146 #D1DE77

Accessibility & contrast

On white

2.43
#9FAF2B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.64
#9FAF2B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9FAF2B
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9FAF2B#FFFFFF#000000##000000
##9FAF2B1.002.438.648.64
#FFFFFF2.431.0021.0021.00
#0000008.6421.001.001.00
##0000008.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#BBA60B
Deuteranopia (green-blind)
#BAA737
Tritanopia (blue-blind)
#A9A596
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #9faf2b;
/* rgb */ color: rgb(159, 175, 43);
/* oklch */ color: oklch(71.8% 0.150 116.5);
Tailwind
colors: {
  custom: {
    50: '#bfc66f',
    500: '#9faf2b',
    950: '#000000',
  },
}
SCSS
$custom: #9faf2b;
$custom-light: #bfc66f;
$custom-dark: #000000;
JSON
{
  "hex": "#9faf2b",
  "rgb": {
    "r": 159,
    "g": 175,
    "b": 43
  },
  "hsl": {
    "h": 67.273,
    "s": 60.55,
    "l": 42.745
  },
  "oklch": {
    "l": 0.71805,
    "c": 0.15032,
    "h": 116.5
  },
  "luminance": 0.38205
}

Semantic roles & 50–950 ramp

primary
#9FAF2B
secondary
#7B70C5
accent
#44E457
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131308
muted
#82827B

Preview Lab

Preview with #9FAF2B

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

Preview Lab → · Contrast checker → · Palette generator →

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