#9E9815#9E9815

#9E9815 is a light, vivid yellow. Relative luminance 0.298; OKLCH L 66.4% C 0.137 H 106.7°. Best body text is #000000 at 6.96:1 contrast (WCAG AA passes).

Color values

HEX#9E9815
RGBrgb(158, 152, 21)
HSLhsl(57, 77%, 35%)
HSVhsv(57, 87%, 62%)
CMYKcmyk(0%, 3.8%, 86.7%, 38%)
CIE-LABlab(61.46, -11.56, 61.39)
CIE-LCHlch(61.46, 62.47, 100.67°)
OKLaboklab(66.39% -0.0393 0.1313)
OKLCHoklch(66.39% 0.137 106.7)
XYZxyz(25.4653, 29.7807, 5.1162)
Luminance0.2978 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E9815 #151B9E
analogous
#9E5315 #9E9815 #609E15
triadic
#9E9815 #159E98 #98159E
tetradic
#9E9815 #159E53 #151B9E #9E1560
square
#9E9815 #159E53 #151B9E #9E1560
split-complementary
#9E9815 #15609E #53159E
monochromatic
#323007 #68640E #9E9815 #D4CC1C #E7E047

Accessibility & contrast

On white

3.02
#9E9815 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.96
#9E9815 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9E9815
6.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E9815#FFFFFF#000000##000000
##9E98151.003.026.966.96
#FFFFFF3.021.0021.0021.00
#0000006.9621.001.001.00
##0000006.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#A69200
Deuteranopia (green-blind)
#A89723
Tritanopia (blue-blind)
#AA8D81
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #9e9815;
/* rgb */ color: rgb(158, 152, 21);
/* oklch */ color: oklch(66.4% 0.137 106.7);
Tailwind
colors: {
  custom: {
    50: '#bfb663',
    500: '#9e9815',
    950: '#000000',
  },
}
SCSS
$custom: #9e9815;
$custom-light: #bfb663;
$custom-dark: #000000;
JSON
{
  "hex": "#9e9815",
  "rgb": {
    "r": 158,
    "g": 152,
    "b": 21
  },
  "hsl": {
    "h": 57.372,
    "s": 76.536,
    "l": 35.098
  },
  "oklch": {
    "l": 0.66385,
    "c": 0.13704,
    "h": 106.7
  },
  "luminance": 0.2978
}

Semantic roles & 50–950 ramp

primary
#9E9815
secondary
#474DC7
accent
#3DF335
background
#FCFBF6
surface
#F8F6EB
border
#D1D0C6
text
#131106
muted
#82807A

Preview Lab

Preview with #9E9815

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

Preview Lab → · Contrast checker → · Palette generator →

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