#9FAC40#9FAC40

#9FAC40 is a light, vivid yellow. Relative luminance 0.372; OKLCH L 71.3% C 0.132 H 115.7°. Best body text is #000000 at 8.45:1 contrast (WCAG AA passes).

Color values

HEX#9FAC40
RGBrgb(159, 172, 64)
HSLhsl(67, 46%, 46%)
HSVhsv(67, 63%, 67%)
CMYKcmyk(7.6%, 0%, 62.8%, 32.5%)
CIE-LABlab(67.46, -19.40, 52.30)
CIE-LCHlch(67.46, 55.79, 110.35°)
OKLaboklab(71.28% -0.0574 0.1194)
OKLCHoklch(71.28% 0.132 115.7)
XYZxyz(29.9767, 37.2466, 10.4596)
Luminance0.3725 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9FAC40 #4D40AC
analogous
#AC8340 #9FAC40 #69AC40
triadic
#9FAC40 #409FAC #AC409F
tetradic
#9FAC40 #40AC83 #4D40AC #AC4069
square
#9FAC40 #40AC83 #4D40AC #AC4069
split-complementary
#9FAC40 #4069AC #8340AC
monochromatic
#4D531F #767F2F #9FAC40 #BAC564 #CED691

Accessibility & contrast

On white

2.49
#9FAC40 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.45
#9FAC40 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9FAC40
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9FAC40#FFFFFF#000000##000000
##9FAC401.002.498.458.45
#FFFFFF2.491.0021.0021.00
#0000008.4521.001.001.00
##0000008.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#B8A433
Deuteranopia (green-blind)
#B7A547
Tritanopia (blue-blind)
#A9A395
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #9fac40;
/* rgb */ color: rgb(159, 172, 64);
/* oklch */ color: oklch(71.3% 0.132 115.7);
Tailwind
colors: {
  custom: {
    50: '#bec47a',
    500: '#9fac40',
    950: '#000000',
  },
}
SCSS
$custom: #9fac40;
$custom-light: #bec47a;
$custom-dark: #000000;
JSON
{
  "hex": "#9fac40",
  "rgb": {
    "r": 159,
    "g": 172,
    "b": 64
  },
  "hsl": {
    "h": 67.222,
    "s": 45.763,
    "l": 46.275
  },
  "oklch": {
    "l": 0.71281,
    "c": 0.13249,
    "h": 115.7
  },
  "luminance": 0.37246
}

Semantic roles & 50–950 ramp

primary
#9FAC40
secondary
#8E87C1
accent
#52D562
background
#FCFCF7
surface
#F8F8EE
border
#D1D1C9
text
#121209
muted
#81817B

Preview Lab

Preview with #9FAC40

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

Preview Lab → · Contrast checker → · Palette generator →

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