#8E8822#8E8822

#8E8822 is a mid, moderate yellow. Relative luminance 0.235; OKLCH L 61.4% C 0.119 H 106.0°. Best body text is #000000 at 5.69:1 contrast (WCAG AA passes).

Color values

HEX#8E8822
RGBrgb(142, 136, 34)
HSLhsl(57, 61%, 35%)
HSVhsv(57, 76%, 56%)
CMYKcmyk(0%, 4.2%, 76.1%, 44.3%)
CIE-LABlab(55.56, -9.82, 51.86)
CIE-LCHlch(55.56, 52.79, 100.72°)
OKLaboklab(61.35% -0.0326 0.114)
OKLCHoklch(61.35% 0.119 106)
XYZxyz(20.2491, 23.4754, 4.9776)
Luminance0.2347 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E8822 #22288E
analogous
#8E5222 #8E8822 #5E8E22
triadic
#8E8822 #228E88 #88228E
tetradic
#8E8822 #228E52 #22288E #8E225E
square
#8E8822 #228E52 #22288E #8E225E
split-complementary
#8E8822 #225E8E #52228E
monochromatic
#2B290A #5D5916 #8E8822 #BFB72E #D6CF54

Accessibility & contrast

On white

3.69
#8E8822 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.69
#8E8822 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8E8822
5.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E8822#FFFFFF#000000##000000
##8E88221.003.695.695.69
#FFFFFF3.691.0021.0021.00
#0000005.6921.001.001.00
##0000005.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#94830D
Deuteranopia (green-blind)
#97872A
Tritanopia (blue-blind)
#997E75
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #8e8822;
/* rgb */ color: rgb(142, 136, 34);
/* oklch */ color: oklch(61.4% 0.119 106.0);
Tailwind
colors: {
  custom: {
    50: '#b2aa65',
    500: '#8e8822',
    950: '#000000',
  },
}
SCSS
$custom: #8e8822;
$custom-light: #b2aa65;
$custom-dark: #000000;
JSON
{
  "hex": "#8e8822",
  "rgb": {
    "r": 142,
    "g": 136,
    "b": 34
  },
  "hsl": {
    "h": 56.667,
    "s": 61.364,
    "l": 34.51
  },
  "oklch": {
    "l": 0.61352,
    "c": 0.11854,
    "h": 106
  },
  "luminance": 0.23475
}

Semantic roles & 50–950 ramp

primary
#8E8822
secondary
#5258BA
accent
#4CE443
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #8E8822

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

Preview Lab → · Contrast checker → · Palette generator →

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