#8E8321#8E8321

#8E8321 is a mid, moderate yellow. Relative luminance 0.221; OKLCH L 60.2% C 0.114 H 102.7°. Best body text is #000000 at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#8E8321
RGBrgb(142, 131, 33)
HSLhsl(54, 62%, 34%)
HSVhsv(54, 77%, 56%)
CMYKcmyk(0%, 7.7%, 76.8%, 44.3%)
CIE-LABlab(54.13, -7.14, 50.88)
CIE-LCHlch(54.13, 51.38, 97.98°)
OKLaboklab(60.21% -0.0251 0.1117)
OKLCHoklch(60.21% 0.114 102.7)
XYZxyz(19.5470, 22.0940, 4.6735)
Luminance0.2209 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E8321 #212C8E
analogous
#8E4D21 #8E8321 #638E21
triadic
#8E8321 #218E83 #83218E
tetradic
#8E8321 #218E4D #212C8E #8E2163
square
#8E8321 #218E4D #212C8E #8E2163
split-complementary
#8E8321 #21638E #4D218E
monochromatic
#2B270A #5C5515 #8E8321 #C0B12D #D7CA52

Accessibility & contrast

On white

3.88
#8E8321 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.42
#8E8321 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8E8321
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E8321#FFFFFF#000000##000000
##8E83211.003.885.425.42
#FFFFFF3.881.0021.0021.00
#0000005.4221.001.001.00
##0000005.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F0D
Deuteranopia (green-blind)
#938428
Tritanopia (blue-blind)
#997970
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #8e8321;
/* rgb */ color: rgb(142, 131, 33);
/* oklch */ color: oklch(60.2% 0.114 102.7);
Tailwind
colors: {
  custom: {
    50: '#b2a664',
    500: '#8e8321',
    950: '#000000',
  },
}
SCSS
$custom: #8e8321;
$custom-light: #b2a664;
$custom-dark: #000000;
JSON
{
  "hex": "#8e8321",
  "rgb": {
    "r": 142,
    "g": 131,
    "b": 33
  },
  "hsl": {
    "h": 53.945,
    "s": 62.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.6021,
    "c": 0.11449,
    "h": 102.7
  },
  "luminance": 0.22093
}

Semantic roles & 50–950 ramp

primary
#8E8321
secondary
#505BBA
accent
#53E542
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8E8321

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

Preview Lab → · Contrast checker → · Palette generator →

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