#9EB31C#9EB31C

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

Color values

HEX#9EB31C
RGBrgb(158, 179, 28)
HSLhsl(68, 73%, 41%)
HSVhsv(68, 84%, 70%)
CMYKcmyk(11.7%, 0%, 84.4%, 29.8%)
CIE-LABlab(69.18, -25.10, 66.22)
CIE-LCHlch(69.18, 70.81, 110.76°)
OKLaboklab(72.58% -0.0762 0.143)
OKLCHoklch(72.58% 0.162 118.1)
XYZxyz(30.4310, 39.5934, 7.1376)
Luminance0.3959 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9EB31C #311CB3
analogous
#B37C1C #9EB31C #53B31C
triadic
#9EB31C #1C9EB3 #B31C9E
tetradic
#9EB31C #1CB37C #311CB3 #B31C53
square
#9EB31C #1CB37C #311CB3 #B31C53
split-complementary
#9EB31C #1C53B3 #7C1CB3
monochromatic
#41490B #6F7E14 #9EB31C #C6DE2E #D4E763

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9EB31C#FFFFFF#000000##000000
##9EB31C1.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: #9eb31c;
/* rgb */ color: rgb(158, 179, 28);
/* oklch */ color: oklch(72.6% 0.162 118.1);
Tailwind
colors: {
  custom: {
    50: '#bfc969',
    500: '#9eb31c',
    950: '#000000',
  },
}
SCSS
$custom: #9eb31c;
$custom-light: #bfc969;
$custom-dark: #000000;
JSON
{
  "hex": "#9eb31c",
  "rgb": {
    "r": 158,
    "g": 179,
    "b": 28
  },
  "hsl": {
    "h": 68.344,
    "s": 72.947,
    "l": 40.588
  },
  "oklch": {
    "l": 0.72575,
    "c": 0.162,
    "h": 118.1
  },
  "luminance": 0.39593
}

Semantic roles & 50–950 ramp

primary
#9EB31C
secondary
#6E5FCB
accent
#38F052
background
#FCFCF6
surface
#F8F8EC
border
#D1D1C7
text
#131307
muted
#82827A

Preview Lab

Preview with #9EB31C

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

Preview Lab → · Contrast checker → · Palette generator →

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