#8E8722#8E8722

#8E8722 is a mid, moderate yellow. Relative luminance 0.232; OKLCH L 61.1% C 0.118 H 105.3°. Best body text is #000000 at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#8E8722
RGBrgb(142, 135, 34)
HSLhsl(56, 61%, 35%)
HSVhsv(56, 76%, 56%)
CMYKcmyk(0%, 4.9%, 76.1%, 44.3%)
CIE-LABlab(55.27, -9.28, 51.60)
CIE-LCHlch(55.27, 52.42, 100.19°)
OKLaboklab(61.12% -0.0311 0.1134)
OKLCHoklch(61.12% 0.118 105.3)
XYZxyz(20.1089, 23.1950, 4.9309)
Luminance0.2319 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E8722 #22298E
analogous
#8E5122 #8E8722 #5F8E22
triadic
#8E8722 #228E87 #87228E
tetradic
#8E8722 #228E51 #22298E #8E225F
square
#8E8722 #228E51 #22298E #8E225F
split-complementary
#8E8722 #225F8E #51228E
monochromatic
#2B290A #5D5816 #8E8722 #BFB62E #D6CE54

Accessibility & contrast

On white

3.72
#8E8722 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.64
#8E8722 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8E8722
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E8722#FFFFFF#000000##000000
##8E87221.003.725.645.64
#FFFFFF3.721.0021.0021.00
#0000005.6421.001.001.00
##0000005.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#93820D
Deuteranopia (green-blind)
#96862A
Tritanopia (blue-blind)
#997D74
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #8e8722;
/* rgb */ color: rgb(142, 135, 34);
/* oklch */ color: oklch(61.1% 0.118 105.3);
Tailwind
colors: {
  custom: {
    50: '#b2a965',
    500: '#8e8722',
    950: '#000000',
  },
}
SCSS
$custom: #8e8722;
$custom-light: #b2a965;
$custom-dark: #000000;
JSON
{
  "hex": "#8e8722",
  "rgb": {
    "r": 142,
    "g": 135,
    "b": 34
  },
  "hsl": {
    "h": 56.111,
    "s": 61.364,
    "l": 34.51
  },
  "oklch": {
    "l": 0.61124,
    "c": 0.11758,
    "h": 105.3
  },
  "luminance": 0.23194
}

Semantic roles & 50–950 ramp

primary
#8E8722
secondary
#5259BA
accent
#4EE443
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8E8722

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

Preview Lab → · Contrast checker → · Palette generator →

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