#9E8A21#9E8A21

#9E8A21 is a light, vivid yellow. Relative luminance 0.256; OKLCH L 63.3% C 0.120 H 97.7°. Best body text is #000000 at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#9E8A21
RGBrgb(158, 138, 33)
HSLhsl(50, 65%, 37%)
HSVhsv(50, 79%, 62%)
CMYKcmyk(0%, 12.7%, 79.1%, 38%)
CIE-LABlab(57.61, -3.64, 54.66)
CIE-LCHlch(57.61, 54.78, 93.81°)
OKLaboklab(63.34% -0.0162 0.119)
OKLCHoklch(63.34% 0.12 97.7)
XYZxyz(23.4648, 25.5571, 5.1356)
Luminance0.2556 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E8A21 #21359E
analogous
#9E4C21 #9E8A21 #749E21
triadic
#9E8A21 #219E8A #8A219E
tetradic
#9E8A21 #219E4C #21359E #9E2174
square
#9E8A21 #219E4C #21359E #9E2174
split-complementary
#9E8A21 #21749E #4C219E
monochromatic
#39320C #6B5E16 #9E8A21 #D1B62C #DDC85C

Accessibility & contrast

On white

3.44
#9E8A21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.11
#9E8A21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9E8A21
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E8A21#FFFFFF#000000##000000
##9E8A211.003.446.116.11
#FFFFFF3.441.0021.0021.00
#0000006.1121.001.001.00
##0000006.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#998708
Deuteranopia (green-blind)
#9E8D28
Tritanopia (blue-blind)
#AB7F76
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #9e8a21;
/* rgb */ color: rgb(158, 138, 33);
/* oklch */ color: oklch(63.3% 0.120 97.7);
Tailwind
colors: {
  custom: {
    50: '#bfab66',
    500: '#9e8a21',
    950: '#000000',
  },
}
SCSS
$custom: #9e8a21;
$custom-light: #bfab66;
$custom-dark: #000000;
JSON
{
  "hex": "#9e8a21",
  "rgb": {
    "r": 158,
    "g": 138,
    "b": 33
  },
  "hsl": {
    "h": 50.4,
    "s": 65.445,
    "l": 37.451
  },
  "oklch": {
    "l": 0.6334,
    "c": 0.12011,
    "h": 97.7
  },
  "luminance": 0.25556
}

Semantic roles & 50–950 ramp

primary
#9E8A21
secondary
#596AC1
accent
#5AE83F
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A

Preview Lab

Preview with #9E8A21

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

Preview Lab → · Contrast checker → · Palette generator →

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