#9AB31C#9AB31C

#9AB31C is a light, vivid yellow. Relative luminance 0.392; OKLCH L 72.3% C 0.164 H 119.5°. Best body text is #000000 at 8.84:1 contrast (WCAG AA passes).

Color values

HEX#9AB31C
RGBrgb(154, 179, 28)
HSLhsl(70, 73%, 41%)
HSVhsv(70, 84%, 70%)
CMYKcmyk(14%, 0%, 84.4%, 29.8%)
CIE-LABlab(68.89, -26.78, 65.86)
CIE-LCHlch(68.89, 71.10, 112.13°)
OKLaboklab(72.27% -0.0806 0.1424)
OKLCHoklch(72.27% 0.164 119.5)
XYZxyz(29.6568, 39.1942, 7.1013)
Luminance0.3919 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9AB31C #351CB3
analogous
#B3801C #9AB31C #4EB31C
triadic
#9AB31C #1C9AB3 #B31C9A
tetradic
#9AB31C #1CB380 #351CB3 #B31C4E
square
#9AB31C #1CB380 #351CB3 #B31C4E
split-complementary
#9AB31C #1C4EB3 #801CB3
monochromatic
#3F490B #6C7E14 #9AB31C #C1DE2E #D1E763

Accessibility & contrast

On white

2.38
#9AB31C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.84
#9AB31C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9AB31C
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9AB31C#FFFFFF#000000##000000
##9AB31C1.002.388.848.84
#FFFFFF2.381.0021.0021.00
#0000008.8421.001.001.00
##0000008.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#BFA800
Deuteranopia (green-blind)
#BCA92E
Tritanopia (blue-blind)
#A4A999
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #9ab31c;
/* rgb */ color: rgb(154, 179, 28);
/* oklch */ color: oklch(72.3% 0.164 119.5);
Tailwind
colors: {
  custom: {
    50: '#bcc969',
    500: '#9ab31c',
    950: '#000000',
  },
}
SCSS
$custom: #9ab31c;
$custom-light: #bcc969;
$custom-dark: #000000;
JSON
{
  "hex": "#9ab31c",
  "rgb": {
    "r": 154,
    "g": 179,
    "b": 28
  },
  "hsl": {
    "h": 69.934,
    "s": 72.947,
    "l": 40.588
  },
  "oklch": {
    "l": 0.72271,
    "c": 0.16358,
    "h": 119.5
  },
  "luminance": 0.39194
}

Semantic roles & 50–950 ramp

primary
#9AB31C
secondary
#715FCB
accent
#38F057
background
#FCFCF6
surface
#F8F8EC
border
#D1D1C7
text
#121307
muted
#81827A

Preview Lab

Preview with #9AB31C

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

Preview Lab → · Contrast checker → · Palette generator →

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