#8E8221#8E8221

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

Color values

HEX#8E8221
RGBrgb(142, 130, 33)
HSLhsl(53, 62%, 34%)
HSVhsv(53, 77%, 56%)
CMYKcmyk(0%, 8.5%, 76.8%, 44.3%)
CIE-LABlab(53.84, -6.59, 50.62)
CIE-LCHlch(53.84, 51.04, 97.41°)
OKLaboklab(59.99% -0.0236 0.1111)
OKLCHoklch(59.99% 0.114 102)
XYZxyz(19.4134, 21.8267, 4.6289)
Luminance0.2183 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E8221 #212D8E
analogous
#8E4B21 #8E8221 #648E21
triadic
#8E8221 #218E82 #82218E
tetradic
#8E8221 #218E4B #212D8E #8E2164
square
#8E8221 #218E4B #212D8E #8E2164
split-complementary
#8E8221 #21648E #4B218E
monochromatic
#2B270A #5C5515 #8E8221 #C0AF2D #D7C852

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8E8221#FFFFFF#000000##000000
##8E82211.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)
#8F7E0E
Deuteranopia (green-blind)
#928328
Tritanopia (blue-blind)
#99786F
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #8e8221;
/* rgb */ color: rgb(142, 130, 33);
/* oklch */ color: oklch(60.0% 0.114 102.0);
Tailwind
colors: {
  custom: {
    50: '#b3a664',
    500: '#8e8221',
    950: '#000000',
  },
}
SCSS
$custom: #8e8221;
$custom-light: #b3a664;
$custom-dark: #000000;
JSON
{
  "hex": "#8e8221",
  "rgb": {
    "r": 142,
    "g": 130,
    "b": 33
  },
  "hsl": {
    "h": 53.394,
    "s": 62.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.59985,
    "c": 0.1136,
    "h": 102
  },
  "luminance": 0.21826
}

Semantic roles & 50–950 ramp

primary
#8E8221
secondary
#505CBA
accent
#54E542
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8E8221

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

Preview Lab → · Contrast checker → · Palette generator →

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