#8E8422#8E8422

#8E8422 is a mid, moderate yellow. Relative luminance 0.224; OKLCH L 60.4% C 0.115 H 103.3°. Best body text is #000000 at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#8E8422
RGBrgb(142, 132, 34)
HSLhsl(54, 61%, 35%)
HSVhsv(54, 76%, 56%)
CMYKcmyk(0%, 7%, 76.1%, 44.3%)
CIE-LABlab(54.42, -7.64, 50.79)
CIE-LCHlch(54.42, 51.36, 98.55°)
OKLaboklab(60.44% -0.0265 0.1117)
OKLCHoklch(60.44% 0.115 103.3)
XYZxyz(19.6962, 22.3696, 4.7933)
Luminance0.2237 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E8422 #222C8E
analogous
#8E4E22 #8E8422 #628E22
triadic
#8E8422 #228E84 #84228E
tetradic
#8E8422 #228E4E #222C8E #8E2262
square
#8E8422 #228E4E #222C8E #8E2262
split-complementary
#8E8422 #22628E #4E228E
monochromatic
#2B280A #5D5616 #8E8422 #BFB22E #D6CA54

Accessibility & contrast

On white

3.84
#8E8422 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.47
#8E8422 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8E8422
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E8422#FFFFFF#000000##000000
##8E84221.003.845.475.47
#FFFFFF3.841.0021.0021.00
#0000005.4721.001.001.00
##0000005.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F0F
Deuteranopia (green-blind)
#948429
Tritanopia (blue-blind)
#997A71
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #8e8422;
/* rgb */ color: rgb(142, 132, 34);
/* oklch */ color: oklch(60.4% 0.115 103.3);
Tailwind
colors: {
  custom: {
    50: '#b2a765',
    500: '#8e8422',
    950: '#000000',
  },
}
SCSS
$custom: #8e8422;
$custom-light: #b2a765;
$custom-dark: #000000;
JSON
{
  "hex": "#8e8422",
  "rgb": {
    "r": 142,
    "g": 132,
    "b": 34
  },
  "hsl": {
    "h": 54.444,
    "s": 61.364,
    "l": 34.51
  },
  "oklch": {
    "l": 0.60443,
    "c": 0.11478,
    "h": 103.3
  },
  "luminance": 0.22369
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8E8422

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

Preview Lab → · Contrast checker → · Palette generator →

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