#9EB31B#9EB31B

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

Color values

HEX#9EB31B
RGBrgb(158, 179, 27)
HSLhsl(68, 74%, 40%)
HSVhsv(68, 85%, 70%)
CMYKcmyk(11.7%, 0%, 84.9%, 29.8%)
CIE-LABlab(69.18, -25.12, 66.45)
CIE-LCHlch(69.18, 71.04, 110.71°)
OKLaboklab(72.57% -0.0763 0.1433)
OKLCHoklch(72.57% 0.162 118)
XYZxyz(30.4193, 39.5887, 7.0756)
Luminance0.3959 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9EB31B #301BB3
analogous
#B37C1B #9EB31B #52B31B
triadic
#9EB31B #1B9EB3 #B31B9E
tetradic
#9EB31B #1BB37C #301BB3 #B31B52
square
#9EB31B #1BB37C #301BB3 #B31B52
split-complementary
#9EB31B #1B52B3 #7C1BB3
monochromatic
#40490B #6F7E13 #9EB31B #C6DF2C #D5E761

Accessibility & contrast

On white

2.35
#9EB31B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##9EB31B#FFFFFF#000000##000000
##9EB31B1.002.358.928.92
#FFFFFF2.351.0021.0021.00
#0000008.9221.001.001.00
##0000008.9221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9eb31b;
/* rgb */ color: rgb(158, 179, 27);
/* oklch */ color: oklch(72.6% 0.162 118.0);
Tailwind
colors: {
  custom: {
    50: '#bfc969',
    500: '#9eb31b',
    950: '#000000',
  },
}
SCSS
$custom: #9eb31b;
$custom-light: #bfc969;
$custom-dark: #000000;
JSON
{
  "hex": "#9eb31b",
  "rgb": {
    "r": 158,
    "g": 179,
    "b": 27
  },
  "hsl": {
    "h": 68.289,
    "s": 73.786,
    "l": 40.392
  },
  "oklch": {
    "l": 0.72571,
    "c": 0.16235,
    "h": 118
  },
  "luminance": 0.39588
}

Semantic roles & 50–950 ramp

primary
#9EB31B
secondary
#6D5ECC
accent
#37F051
background
#FCFCF6
surface
#F8F8EC
border
#D1D1C7
text
#131307
muted
#82827A

Preview Lab

Preview with #9EB31B

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

Preview Lab → · Contrast checker → · Palette generator →

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