#8E8022#8E8022

#8E8022 is a mid, moderate yellow. Relative luminance 0.213; OKLCH L 59.5% C 0.111 H 100.5°. Best body text is #000000 at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#8E8022
RGBrgb(142, 128, 34)
HSLhsl(52, 61%, 35%)
HSVhsv(52, 76%, 56%)
CMYKcmyk(0%, 9.9%, 76.1%, 44.3%)
CIE-LABlab(53.28, -5.44, 49.71)
CIE-LCHlch(53.28, 50.01, 96.24°)
OKLaboklab(59.54% -0.0202 0.1094)
OKLCHoklch(59.54% 0.111 100.5)
XYZxyz(19.1641, 21.3055, 4.6160)
Luminance0.2130 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E8022 #22308E
analogous
#8E4A22 #8E8022 #668E22
triadic
#8E8022 #228E80 #80228E
tetradic
#8E8022 #228E4A #22308E #8E2266
square
#8E8022 #228E4A #22308E #8E2266
split-complementary
#8E8022 #22668E #4A228E
monochromatic
#2B270A #5D5316 #8E8022 #BFAD2E #D6C554

Accessibility & contrast

On white

3.99
#8E8022 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.26
#8E8022 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8E8022
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E8022#FFFFFF#000000##000000
##8E80221.003.995.265.26
#FFFFFF3.991.0021.0021.00
#0000005.2621.001.001.00
##0000005.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7C11
Deuteranopia (green-blind)
#918228
Tritanopia (blue-blind)
#99766E
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #8e8022;
/* rgb */ color: rgb(142, 128, 34);
/* oklch */ color: oklch(59.5% 0.111 100.5);
Tailwind
colors: {
  custom: {
    50: '#b2a465',
    500: '#8e8022',
    950: '#000000',
  },
}
SCSS
$custom: #8e8022;
$custom-light: #b2a465;
$custom-dark: #000000;
JSON
{
  "hex": "#8e8022",
  "rgb": {
    "r": 142,
    "g": 128,
    "b": 34
  },
  "hsl": {
    "h": 52.222,
    "s": 61.364,
    "l": 34.51
  },
  "oklch": {
    "l": 0.59542,
    "c": 0.11127,
    "h": 100.5
  },
  "luminance": 0.21305
}

Semantic roles & 50–950 ramp

primary
#8E8022
secondary
#525FBA
accent
#58E443
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8E8022

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

Preview Lab → · Contrast checker → · Palette generator →

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