#9E8A20#9E8A20

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

Color values

HEX#9E8A20
RGBrgb(158, 138, 32)
HSLhsl(50, 66%, 37%)
HSVhsv(50, 80%, 62%)
CMYKcmyk(0%, 12.7%, 79.7%, 38%)
CIE-LABlab(57.61, -3.68, 54.99)
CIE-LCHlch(57.61, 55.12, 93.83°)
OKLaboklab(63.33% -0.0164 0.1195)
OKLCHoklch(63.33% 0.121 97.8)
XYZxyz(23.4510, 25.5516, 5.0629)
Luminance0.2555 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E8A20 #20349E
analogous
#9E4B20 #9E8A20 #739E20
triadic
#9E8A20 #209E8A #8A209E
tetradic
#9E8A20 #209E4B #20349E #9E2073
square
#9E8A20 #209E4B #20349E #9E2073
split-complementary
#9E8A20 #20739E #4B209E
monochromatic
#38310B #6B5E16 #9E8A20 #D1B62A #DEC95B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9E8A20#FFFFFF#000000##000000
##9E8A201.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)
#998705
Deuteranopia (green-blind)
#9E8D28
Tritanopia (blue-blind)
#AB7F76
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #9e8a20;
/* rgb */ color: rgb(158, 138, 32);
/* oklch */ color: oklch(63.3% 0.121 97.8);
Tailwind
colors: {
  custom: {
    50: '#bfab65',
    500: '#9e8a20',
    950: '#000000',
  },
}
SCSS
$custom: #9e8a20;
$custom-light: #bfab65;
$custom-dark: #000000;
JSON
{
  "hex": "#9e8a20",
  "rgb": {
    "r": 158,
    "g": 138,
    "b": 32
  },
  "hsl": {
    "h": 50.476,
    "s": 66.316,
    "l": 37.255
  },
  "oklch": {
    "l": 0.63334,
    "c": 0.12064,
    "h": 97.8
  },
  "luminance": 0.2555
}

Semantic roles & 50–950 ramp

primary
#9E8A20
secondary
#5869C2
accent
#5AE93F
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A

Preview Lab

Preview with #9E8A20

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

Preview Lab → · Contrast checker → · Palette generator →

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