#9E8022#9E8022

#9E8022 is a mid, moderate yellow. Relative luminance 0.228; OKLCH L 61.2% C 0.113 H 90.1°. Best body text is #000000 at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#9E8022
RGBrgb(158, 128, 34)
HSLhsl(45, 65%, 38%)
HSVhsv(45, 78%, 62%)
CMYKcmyk(0%, 19%, 78.5%, 38%)
CIE-LABlab(54.89, 1.94, 51.80)
CIE-LCHlch(54.89, 51.84, 87.85°)
OKLaboklab(61.19% -0.0002 0.1131)
OKLCHoklch(61.19% 0.113 90.1)
XYZxyz(22.1098, 22.8244, 4.7541)
Luminance0.2282 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E8022 #22409E
analogous
#9E4222 #9E8022 #7E9E22
triadic
#9E8022 #229E80 #80229E
tetradic
#9E8022 #229E42 #22409E #9E227E
square
#9E8022 #229E42 #22409E #9E227E
split-complementary
#9E8022 #227E9E #42229E
monochromatic
#392E0C #6C5717 #9E8022 #D0A92D #DCBE5E

Accessibility & contrast

On white

3.77
#9E8022 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.56
#9E8022 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9E8022
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E8022#FFFFFF#000000##000000
##9E80221.003.775.565.56
#FFFFFF3.771.0021.0021.00
#0000005.5621.001.001.00
##0000005.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7F10
Deuteranopia (green-blind)
#978727
Tritanopia (blue-blind)
#AB756E
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #9e8022;
/* rgb */ color: rgb(158, 128, 34);
/* oklch */ color: oklch(61.2% 0.113 90.1);
Tailwind
colors: {
  custom: {
    50: '#bfa465',
    500: '#9e8022',
    950: '#000000',
  },
}
SCSS
$custom: #9e8022;
$custom-light: #bfa465;
$custom-dark: #000000;
JSON
{
  "hex": "#9e8022",
  "rgb": {
    "r": 158,
    "g": 128,
    "b": 34
  },
  "hsl": {
    "h": 45.484,
    "s": 64.583,
    "l": 37.647
  },
  "oklch": {
    "l": 0.61189,
    "c": 0.11311,
    "h": 90.1
  },
  "luminance": 0.22823
}

Semantic roles & 50–950 ramp

primary
#9E8022
secondary
#5B74C1
accent
#69E840
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#130F06
muted
#827F7A

Preview Lab

Preview with #9E8022

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

Preview Lab → · Contrast checker → · Palette generator →

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