#8E8A21#8E8A21

#8E8A21 is a mid, vivid yellow. Relative luminance 0.240; OKLCH L 61.8% C 0.121 H 107.2°. Best body text is #000000 at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#8E8A21
RGBrgb(142, 138, 33)
HSLhsl(58, 62%, 34%)
HSVhsv(58, 77%, 56%)
CMYKcmyk(0%, 2.8%, 76.8%, 44.3%)
CIE-LABlab(56.13, -10.94, 52.75)
CIE-LCHlch(56.13, 53.87, 101.72°)
OKLaboklab(61.8% -0.0358 0.1157)
OKLCHoklch(61.8% 0.121 107.2)
XYZxyz(20.5191, 24.0383, 4.9975)
Luminance0.2404 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E8A21 #21258E
analogous
#8E5421 #8E8A21 #5C8E21
triadic
#8E8A21 #218E8A #8A218E
tetradic
#8E8A21 #218E54 #21258E #8E215C
square
#8E8A21 #218E54 #21258E #8E215C
split-complementary
#8E8A21 #215C8E #54218E
monochromatic
#2B290A #5C5A15 #8E8A21 #C0BA2D #D7D252

Accessibility & contrast

On white

3.62
#8E8A21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.81
#8E8A21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8E8A21
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E8A21#FFFFFF#000000##000000
##8E8A211.003.625.815.81
#FFFFFF3.621.0021.0021.00
#0000005.8121.001.001.00
##0000005.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#968409
Deuteranopia (green-blind)
#988829
Tritanopia (blue-blind)
#998076
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #8e8a21;
/* rgb */ color: rgb(142, 138, 33);
/* oklch */ color: oklch(61.8% 0.121 107.2);
Tailwind
colors: {
  custom: {
    50: '#b2ab65',
    500: '#8e8a21',
    950: '#000000',
  },
}
SCSS
$custom: #8e8a21;
$custom-light: #b2ab65;
$custom-dark: #000000;
JSON
{
  "hex": "#8e8a21",
  "rgb": {
    "r": 142,
    "g": 138,
    "b": 33
  },
  "hsl": {
    "h": 57.798,
    "s": 62.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.61802,
    "c": 0.12107,
    "h": 107.2
  },
  "luminance": 0.24038
}

Semantic roles & 50–950 ramp

primary
#8E8A21
secondary
#5054BA
accent
#48E542
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #8E8A21

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

Preview Lab → · Contrast checker → · Palette generator →

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