#8E8922#8E8922

#8E8922 is a mid, moderate 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#8E8922
RGBrgb(142, 137, 34)
HSLhsl(57, 61%, 35%)
HSVhsv(57, 76%, 56%)
CMYKcmyk(0%, 3.5%, 76.1%, 44.3%)
CIE-LABlab(55.84, -10.36, 52.13)
CIE-LCHlch(55.84, 53.15, 101.24°)
OKLaboklab(61.58% -0.0341 0.1145)
OKLCHoklch(61.58% 0.12 106.6)
XYZxyz(20.3906, 23.7583, 5.0248)
Luminance0.2376 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E8922 #22278E
analogous
#8E5322 #8E8922 #5D8E22
triadic
#8E8922 #228E89 #89228E
tetradic
#8E8922 #228E53 #22278E #8E225D
square
#8E8922 #228E53 #22278E #8E225D
split-complementary
#8E8922 #225D8E #53228E
monochromatic
#2B2A0A #5D5916 #8E8922 #BFB92E #D6D054

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8E8922#FFFFFF#000000##000000
##8E89221.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)
#95840C
Deuteranopia (green-blind)
#97882A
Tritanopia (blue-blind)
#997F75
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #8e8922;
/* rgb */ color: rgb(142, 137, 34);
/* oklch */ color: oklch(61.6% 0.120 106.6);
Tailwind
colors: {
  custom: {
    50: '#b2ab66',
    500: '#8e8922',
    950: '#000000',
  },
}
SCSS
$custom: #8e8922;
$custom-light: #b2ab66;
$custom-dark: #000000;
JSON
{
  "hex": "#8e8922",
  "rgb": {
    "r": 142,
    "g": 137,
    "b": 34
  },
  "hsl": {
    "h": 57.222,
    "s": 61.364,
    "l": 34.51
  },
  "oklch": {
    "l": 0.6158,
    "c": 0.11951,
    "h": 106.6
  },
  "luminance": 0.23758
}

Semantic roles & 50–950 ramp

primary
#8E8922
secondary
#5257BA
accent
#4BE443
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #8E8922

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

Preview Lab → · Contrast checker → · Palette generator →

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