#9EB31A#9EB31A

#9EB31A is a light, vivid yellow. Relative luminance 0.396; OKLCH L 72.6% C 0.163 H 118.0°. Best body text is #000000 at 8.92:1 contrast (WCAG AA passes).

Color values

HEX#9EB31A
RGBrgb(158, 179, 26)
HSLhsl(68, 75%, 40%)
HSVhsv(68, 85%, 70%)
CMYKcmyk(11.7%, 0%, 85.5%, 29.8%)
CIE-LABlab(69.17, -25.15, 66.67)
CIE-LCHlch(69.17, 71.26, 110.67°)
OKLaboklab(72.57% -0.0764 0.1436)
OKLCHoklch(72.57% 0.163 118)
XYZxyz(30.4079, 39.5842, 7.0157)
Luminance0.3958 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9EB31A #2F1AB3
analogous
#B37B1A #9EB31A #52B31A
triadic
#9EB31A #1A9EB3 #B31A9E
tetradic
#9EB31A #1AB37B #2F1AB3 #B31A52
square
#9EB31A #1AB37B #2F1AB3 #B31A52
split-complementary
#9EB31A #1A52B3 #7B1AB3
monochromatic
#40480A #6F7E12 #9EB31A #C7E02A #D5E860

Accessibility & contrast

On white

2.36
#9EB31A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.92
#9EB31A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9EB31A
8.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9EB31A#FFFFFF#000000##000000
##9EB31A1.002.368.928.92
#FFFFFF2.361.0021.0021.00
#0000008.9221.001.001.00
##0000008.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#C0A900
Deuteranopia (green-blind)
#BDAA2C
Tritanopia (blue-blind)
#A8A999
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #9eb31a;
/* rgb */ color: rgb(158, 179, 26);
/* oklch */ color: oklch(72.6% 0.163 118.0);
Tailwind
colors: {
  custom: {
    50: '#bfc969',
    500: '#9eb31a',
    950: '#000000',
  },
}
SCSS
$custom: #9eb31a;
$custom-light: #bfc969;
$custom-dark: #000000;
JSON
{
  "hex": "#9eb31a",
  "rgb": {
    "r": 158,
    "g": 179,
    "b": 26
  },
  "hsl": {
    "h": 68.235,
    "s": 74.634,
    "l": 40.196
  },
  "oklch": {
    "l": 0.72568,
    "c": 0.1627,
    "h": 118
  },
  "luminance": 0.39584
}

Semantic roles & 50–950 ramp

primary
#9EB31A
secondary
#6C5DCC
accent
#37F150
background
#FCFCF6
surface
#F8F8EC
border
#D1D1C7
text
#131307
muted
#82827A

Preview Lab

Preview with #9EB31A

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

Preview Lab → · Contrast checker → · Palette generator →

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