#8E8721#8E8721

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

Color values

HEX#8E8721
RGBrgb(142, 135, 33)
HSLhsl(56, 62%, 34%)
HSVhsv(56, 77%, 56%)
CMYKcmyk(0%, 4.9%, 76.8%, 44.3%)
CIE-LABlab(55.27, -9.32, 51.95)
CIE-LCHlch(55.27, 52.78, 100.17°)
OKLaboklab(61.12% -0.0313 0.114)
OKLCHoklch(61.12% 0.118 105.4)
XYZxyz(20.0947, 23.1893, 4.8560)
Luminance0.2319 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E8721 #21288E
analogous
#8E5121 #8E8721 #5F8E21
triadic
#8E8721 #218E87 #87218E
tetradic
#8E8721 #218E51 #21288E #8E215F
square
#8E8721 #218E51 #21288E #8E215F
split-complementary
#8E8721 #215F8E #51218E
monochromatic
#2B290A #5C5815 #8E8721 #C0B62D #D7CE52

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8E8721#FFFFFF#000000##000000
##8E87211.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)
#93820B
Deuteranopia (green-blind)
#968629
Tritanopia (blue-blind)
#997D74
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #8e8721;
/* rgb */ color: rgb(142, 135, 33);
/* oklch */ color: oklch(61.1% 0.118 105.4);
Tailwind
colors: {
  custom: {
    50: '#b2a965',
    500: '#8e8721',
    950: '#000000',
  },
}
SCSS
$custom: #8e8721;
$custom-light: #b2a965;
$custom-dark: #000000;
JSON
{
  "hex": "#8e8721",
  "rgb": {
    "r": 142,
    "g": 135,
    "b": 33
  },
  "hsl": {
    "h": 56.147,
    "s": 62.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.61118,
    "c": 0.11817,
    "h": 105.4
  },
  "luminance": 0.23189
}

Semantic roles & 50–950 ramp

primary
#8E8721
secondary
#5057BA
accent
#4DE542
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8E8721

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

Preview Lab → · Contrast checker → · Palette generator →

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