#8E8521#8E8521

#8E8521 is a mid, moderate yellow. Relative luminance 0.226; OKLCH L 60.7% C 0.116 H 104.0°. Best body text is #000000 at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#8E8521
RGBrgb(142, 133, 33)
HSLhsl(55, 62%, 34%)
HSVhsv(55, 77%, 56%)
CMYKcmyk(0%, 6.3%, 76.8%, 44.3%)
CIE-LABlab(54.70, -8.23, 51.42)
CIE-LCHlch(54.70, 52.07, 99.10°)
OKLaboklab(60.66% -0.0282 0.1128)
OKLCHoklch(60.66% 0.116 104)
XYZxyz(19.8182, 22.6365, 4.7639)
Luminance0.2264 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E8521 #212A8E
analogous
#8E4F21 #8E8521 #618E21
triadic
#8E8521 #218E85 #85218E
tetradic
#8E8521 #218E4F #212A8E #8E2161
square
#8E8521 #218E4F #212A8E #8E2161
split-complementary
#8E8521 #21618E #4F218E
monochromatic
#2B280A #5C5615 #8E8521 #C0B42D #D7CC52

Accessibility & contrast

On white

3.80
#8E8521 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.53
#8E8521 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8E8521
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E8521#FFFFFF#000000##000000
##8E85211.003.805.535.53
#FFFFFF3.801.0021.0021.00
#0000005.5321.001.001.00
##0000005.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#91800C
Deuteranopia (green-blind)
#948528
Tritanopia (blue-blind)
#997B72
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #8e8521;
/* rgb */ color: rgb(142, 133, 33);
/* oklch */ color: oklch(60.7% 0.116 104.0);
Tailwind
colors: {
  custom: {
    50: '#b2a865',
    500: '#8e8521',
    950: '#000000',
  },
}
SCSS
$custom: #8e8521;
$custom-light: #b2a865;
$custom-dark: #000000;
JSON
{
  "hex": "#8e8521",
  "rgb": {
    "r": 142,
    "g": 133,
    "b": 33
  },
  "hsl": {
    "h": 55.046,
    "s": 62.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.60663,
    "c": 0.1163,
    "h": 104
  },
  "luminance": 0.22636
}

Semantic roles & 50–950 ramp

primary
#8E8521
secondary
#5059BA
accent
#50E542
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8E8521

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

Preview Lab → · Contrast checker → · Palette generator →

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