#8E8A22#8E8A22

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

Color values

HEX#8E8A22
RGBrgb(142, 138, 34)
HSLhsl(58, 61%, 35%)
HSVhsv(58, 76%, 56%)
CMYKcmyk(0%, 2.8%, 76.1%, 44.3%)
CIE-LABlab(56.13, -10.90, 52.40)
CIE-LCHlch(56.13, 53.52, 101.75°)
OKLaboklab(61.81% -0.0356 0.1151)
OKLCHoklch(61.81% 0.12 107.2)
XYZxyz(20.5334, 24.0440, 5.0724)
Luminance0.2404 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E8A22 #22268E
analogous
#8E5422 #8E8A22 #5C8E22
triadic
#8E8A22 #228E8A #8A228E
tetradic
#8E8A22 #228E54 #22268E #8E225C
square
#8E8A22 #228E54 #22268E #8E225C
split-complementary
#8E8A22 #225C8E #54228E
monochromatic
#2B2A0A #5D5A16 #8E8A22 #BFBA2E #D6D154

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8E8A22#FFFFFF#000000##000000
##8E8A221.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)
#96840C
Deuteranopia (green-blind)
#98882A
Tritanopia (blue-blind)
#998176
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #8e8a22;
/* rgb */ color: rgb(142, 138, 34);
/* oklch */ color: oklch(61.8% 0.120 107.2);
Tailwind
colors: {
  custom: {
    50: '#b2ab66',
    500: '#8e8a22',
    950: '#000000',
  },
}
SCSS
$custom: #8e8a22;
$custom-light: #b2ab66;
$custom-dark: #000000;
JSON
{
  "hex": "#8e8a22",
  "rgb": {
    "r": 142,
    "g": 138,
    "b": 34
  },
  "hsl": {
    "h": 57.778,
    "s": 61.364,
    "l": 34.51
  },
  "oklch": {
    "l": 0.61809,
    "c": 0.12049,
    "h": 107.2
  },
  "luminance": 0.24043
}

Semantic roles & 50–950 ramp

primary
#8E8A22
secondary
#5256BA
accent
#49E443
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #8E8A22

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

Preview Lab → · Contrast checker → · Palette generator →

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