#8E8921#8E8921

#8E8921 is a mid, vivid yellow. Relative luminance 0.238; OKLCH L 61.6% C 0.120 H 106.6°. Best body text is #000000 at 5.75:1 contrast (WCAG AA passes).

Color values

HEX#8E8921
RGBrgb(142, 137, 33)
HSLhsl(57, 62%, 34%)
HSVhsv(57, 77%, 56%)
CMYKcmyk(0%, 3.5%, 76.8%, 44.3%)
CIE-LABlab(55.84, -10.40, 52.48)
CIE-LCHlch(55.84, 53.50, 101.21°)
OKLaboklab(61.57% -0.0343 0.1151)
OKLCHoklch(61.57% 0.12 106.6)
XYZxyz(20.3763, 23.7526, 4.9499)
Luminance0.2375 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E8921 #21268E
analogous
#8E5321 #8E8921 #5D8E21
triadic
#8E8921 #218E89 #89218E
tetradic
#8E8921 #218E53 #21268E #8E215D
square
#8E8921 #218E53 #21268E #8E215D
split-complementary
#8E8921 #215D8E #53218E
monochromatic
#2B290A #5C5915 #8E8921 #C0B92D #D7D152

Accessibility & contrast

On white

3.65
#8E8921 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.75
#8E8921 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8E8921
5.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E8921#FFFFFF#000000##000000
##8E89211.003.655.755.75
#FFFFFF3.651.0021.0021.00
#0000005.7521.001.001.00
##0000005.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#95840A
Deuteranopia (green-blind)
#978829
Tritanopia (blue-blind)
#997F75
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #8e8921;
/* rgb */ color: rgb(142, 137, 33);
/* oklch */ color: oklch(61.6% 0.120 106.6);
Tailwind
colors: {
  custom: {
    50: '#b2ab65',
    500: '#8e8921',
    950: '#000000',
  },
}
SCSS
$custom: #8e8921;
$custom-light: #b2ab65;
$custom-dark: #000000;
JSON
{
  "hex": "#8e8921",
  "rgb": {
    "r": 142,
    "g": 137,
    "b": 33
  },
  "hsl": {
    "h": 57.248,
    "s": 62.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.61574,
    "c": 0.1201,
    "h": 106.6
  },
  "luminance": 0.23752
}

Semantic roles & 50–950 ramp

primary
#8E8921
secondary
#5055BA
accent
#4AE542
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #8E8921

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

Preview Lab → · Contrast checker → · Palette generator →

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