#8E8222#8E8222

#8E8222 is a mid, moderate yellow. Relative luminance 0.218; OKLCH L 60.0% C 0.113 H 101.9°. Best body text is #000000 at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#8E8222
RGBrgb(142, 130, 34)
HSLhsl(53, 61%, 35%)
HSVhsv(53, 76%, 56%)
CMYKcmyk(0%, 8.5%, 76.1%, 44.3%)
CIE-LABlab(53.85, -6.54, 50.25)
CIE-LCHlch(53.85, 50.68, 97.42°)
OKLaboklab(59.99% -0.0234 0.1106)
OKLCHoklch(59.99% 0.113 101.9)
XYZxyz(19.4276, 21.8324, 4.7038)
Luminance0.2183 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E8222 #222E8E
analogous
#8E4C22 #8E8222 #648E22
triadic
#8E8222 #228E82 #82228E
tetradic
#8E8222 #228E4C #222E8E #8E2264
square
#8E8222 #228E4C #222E8E #8E2264
split-complementary
#8E8222 #22648E #4C228E
monochromatic
#2B280A #5D5516 #8E8222 #BFAF2E #D6C854

Accessibility & contrast

On white

3.91
#8E8222 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.37
#8E8222 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8E8222
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E8222#FFFFFF#000000##000000
##8E82221.003.915.375.37
#FFFFFF3.911.0021.0021.00
#0000005.3721.001.001.00
##0000005.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E10
Deuteranopia (green-blind)
#928329
Tritanopia (blue-blind)
#99786F
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #8e8222;
/* rgb */ color: rgb(142, 130, 34);
/* oklch */ color: oklch(60.0% 0.113 101.9);
Tailwind
colors: {
  custom: {
    50: '#b2a665',
    500: '#8e8222',
    950: '#000000',
  },
}
SCSS
$custom: #8e8222;
$custom-light: #b2a665;
$custom-dark: #000000;
JSON
{
  "hex": "#8e8222",
  "rgb": {
    "r": 142,
    "g": 130,
    "b": 34
  },
  "hsl": {
    "h": 53.333,
    "s": 61.364,
    "l": 34.51
  },
  "oklch": {
    "l": 0.59992,
    "c": 0.11299,
    "h": 101.9
  },
  "luminance": 0.21832
}

Semantic roles & 50–950 ramp

primary
#8E8222
secondary
#525DBA
accent
#55E443
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8E8222

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

Preview Lab → · Contrast checker → · Palette generator →

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