#8E8322#8E8322

#8E8322 is a mid, moderate yellow. Relative luminance 0.221; OKLCH L 60.2% C 0.114 H 102.6°. Best body text is #000000 at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#8E8322
RGBrgb(142, 131, 34)
HSLhsl(54, 61%, 35%)
HSVhsv(54, 76%, 56%)
CMYKcmyk(0%, 7.7%, 76.1%, 44.3%)
CIE-LABlab(54.13, -7.09, 50.52)
CIE-LCHlch(54.13, 51.02, 97.99°)
OKLaboklab(60.22% -0.0249 0.1111)
OKLCHoklch(60.22% 0.114 102.6)
XYZxyz(19.5612, 22.0997, 4.7484)
Luminance0.2210 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E8322 #222D8E
analogous
#8E4D22 #8E8322 #638E22
triadic
#8E8322 #228E83 #83228E
tetradic
#8E8322 #228E4D #222D8E #8E2263
square
#8E8322 #228E4D #222D8E #8E2263
split-complementary
#8E8322 #22638E #4D228E
monochromatic
#2B280A #5D5516 #8E8322 #BFB12E #D6C954

Accessibility & contrast

On white

3.87
#8E8322 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.42
#8E8322 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8E8322
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E8322#FFFFFF#000000##000000
##8E83221.003.875.425.42
#FFFFFF3.871.0021.0021.00
#0000005.4221.001.001.00
##0000005.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F0F
Deuteranopia (green-blind)
#938429
Tritanopia (blue-blind)
#997970
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #8e8322;
/* rgb */ color: rgb(142, 131, 34);
/* oklch */ color: oklch(60.2% 0.114 102.6);
Tailwind
colors: {
  custom: {
    50: '#b2a665',
    500: '#8e8322',
    950: '#000000',
  },
}
SCSS
$custom: #8e8322;
$custom-light: #b2a665;
$custom-dark: #000000;
JSON
{
  "hex": "#8e8322",
  "rgb": {
    "r": 142,
    "g": 131,
    "b": 34
  },
  "hsl": {
    "h": 53.889,
    "s": 61.364,
    "l": 34.51
  },
  "oklch": {
    "l": 0.60217,
    "c": 0.11388,
    "h": 102.6
  },
  "luminance": 0.22099
}

Semantic roles & 50–950 ramp

primary
#8E8322
secondary
#525CBA
accent
#54E443
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8E8322

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

Preview Lab → · Contrast checker → · Palette generator →

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