#9E9731#9E9731

#9E9731 is a light, vivid yellow. Relative luminance 0.296; OKLCH L 66.3% C 0.121 H 105.4°. Best body text is #000000 at 6.92:1 contrast (WCAG AA passes).

Color values

HEX#9E9731
RGBrgb(158, 151, 49)
HSLhsl(56, 53%, 41%)
HSVhsv(56, 69%, 62%)
CMYKcmyk(0%, 4.4%, 69%, 38%)
CIE-LABlab(61.33, -9.90, 52.19)
CIE-LCHlch(61.33, 53.13, 100.74°)
OKLaboklab(66.32% -0.0322 0.1169)
OKLCHoklch(66.32% 0.121 105.4)
XYZxyz(25.7225, 29.6250, 7.2684)
Luminance0.2962 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E9731 #31389E
analogous
#9E6031 #9E9731 #6E9E31
triadic
#9E9731 #319E97 #97319E
tetradic
#9E9731 #319E60 #31389E #9E316E
square
#9E9731 #319E60 #31389E #9E316E
split-complementary
#9E9731 #316E9E #60319E
monochromatic
#413E14 #6F6A23 #9E9731 #C6BE46 #D4CE75

Accessibility & contrast

On white

3.03
#9E9731 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.92
#9E9731 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9E9731
6.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E9731#FFFFFF#000000##000000
##9E97311.003.036.926.92
#FFFFFF3.031.0021.0021.00
#0000006.9221.001.001.00
##0000006.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#A49222
Deuteranopia (green-blind)
#A79638
Tritanopia (blue-blind)
#AA8D82
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #9e9731;
/* rgb */ color: rgb(158, 151, 49);
/* oklch */ color: oklch(66.3% 0.121 105.4);
Tailwind
colors: {
  custom: {
    50: '#beb56f',
    500: '#9e9731',
    950: '#000000',
  },
}
SCSS
$custom: #9e9731;
$custom-light: #beb56f;
$custom-dark: #000000;
JSON
{
  "hex": "#9e9731",
  "rgb": {
    "r": 158,
    "g": 151,
    "b": 49
  },
  "hsl": {
    "h": 56.147,
    "s": 52.657,
    "l": 40.588
  },
  "oklch": {
    "l": 0.66323,
    "c": 0.12123,
    "h": 105.4
  },
  "luminance": 0.29624
}

Semantic roles & 50–950 ramp

primary
#9E9731
secondary
#6E73BC
accent
#55DC4C
background
#FCFBF6
surface
#F8F6EC
border
#D1D0C7
text
#121108
muted
#81807B

Preview Lab

Preview with #9E9731

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

Preview Lab → · Contrast checker → · Palette generator →

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