#9FAB2C#9FAB2C

#9FAB2C is a light, vivid yellow. Relative luminance 0.367; OKLCH L 70.9% C 0.145 H 114.9°. Best body text is #000000 at 8.34:1 contrast (WCAG AA passes).

Color values

HEX#9FAB2C
RGBrgb(159, 171, 44)
HSLhsl(66, 59%, 42%)
HSVhsv(66, 74%, 67%)
CMYKcmyk(7%, 0%, 74.3%, 32.9%)
CIE-LABlab(67.04, -20.09, 59.69)
CIE-LCHlch(67.04, 62.97, 108.60°)
OKLaboklab(70.89% -0.0612 0.1318)
OKLCHoklch(70.89% 0.145 114.9)
XYZxyz(29.3164, 36.6791, 7.9178)
Luminance0.3668 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9FAB2C #382CAB
analogous
#AB772C #9FAB2C #60AB2C
triadic
#9FAB2C #2C9FAB #AB2C9F
tetradic
#9FAB2C #2CAB77 #382CAB #AB2C60
square
#9FAB2C #2CAB77 #382CAB #AB2C60
split-complementary
#9FAB2C #2C60AB #772CAB
monochromatic
#444A13 #727A1F #9FAB2C #C2CF45 #D2DC76

Accessibility & contrast

On white

2.52
#9FAB2C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.34
#9FAB2C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9FAB2C
8.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9FAB2C#FFFFFF#000000##000000
##9FAB2C1.002.528.348.34
#FFFFFF2.521.0021.0021.00
#0000008.3421.001.001.00
##0000008.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#B7A211
Deuteranopia (green-blind)
#B7A437
Tritanopia (blue-blind)
#AAA193
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #9fab2c;
/* rgb */ color: rgb(159, 171, 44);
/* oklch */ color: oklch(70.9% 0.145 114.9);
Tailwind
colors: {
  custom: {
    50: '#bfc36f',
    500: '#9fab2c',
    950: '#000000',
  },
}
SCSS
$custom: #9fab2c;
$custom-light: #bfc36f;
$custom-dark: #000000;
JSON
{
  "hex": "#9fab2c",
  "rgb": {
    "r": 159,
    "g": 171,
    "b": 44
  },
  "hsl": {
    "h": 65.669,
    "s": 59.07,
    "l": 42.157
  },
  "oklch": {
    "l": 0.70894,
    "c": 0.14531,
    "h": 114.9
  },
  "luminance": 0.36679
}

Semantic roles & 50–950 ramp

primary
#9FAB2C
secondary
#776FC3
accent
#46E254
background
#FCFBF7
surface
#F8F7ED
border
#D1D0C8
text
#131208
muted
#82817B

Preview Lab

Preview with #9FAB2C

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

Preview Lab → · Contrast checker → · Palette generator →

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