#8A8C22#8A8C22

#8A8C22 is a mid, vivid yellow. Relative luminance 0.243; OKLCH L 61.9% C 0.123 H 110.6°. Best body text is #000000 at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#8A8C22
RGBrgb(138, 140, 34)
HSLhsl(61, 61%, 34%)
HSVhsv(61, 76%, 55%)
CMYKcmyk(1.4%, 0%, 75.7%, 45.1%)
CIE-LABlab(56.36, -13.78, 52.49)
CIE-LCHlch(56.36, 54.27, 104.71°)
OKLaboklab(61.91% -0.0434 0.1155)
OKLCHoklch(61.91% 0.123 110.6)
XYZxyz(20.1488, 24.2755, 5.1373)
Luminance0.2427 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8C22 #24228C
analogous
#8C5922 #8A8C22 #558C22
triadic
#8A8C22 #228A8C #8C228A
tetradic
#8A8C22 #228C59 #24228C #8C2255
square
#8A8C22 #228C59 #24228C #8C2255
split-complementary
#8A8C22 #22558C #59228C
monochromatic
#292A0A #595B16 #8A8C22 #BBBD2E #D3D553

Accessibility & contrast

On white

3.59
#8A8C22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.86
#8A8C22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8C22
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8C22#FFFFFF#000000##000000
##8A8C221.003.595.865.86
#FFFFFF3.591.0021.0021.00
#0000005.8621.001.001.00
##0000005.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#97860B
Deuteranopia (green-blind)
#98892B
Tritanopia (blue-blind)
#948378
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #8a8c22;
/* rgb */ color: rgb(138, 140, 34);
/* oklch */ color: oklch(61.9% 0.123 110.6);
Tailwind
colors: {
  custom: {
    50: '#afad66',
    500: '#8a8c22',
    950: '#000000',
  },
}
SCSS
$custom: #8a8c22;
$custom-light: #afad66;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8c22",
  "rgb": {
    "r": 138,
    "g": 140,
    "b": 34
  },
  "hsl": {
    "h": 61.132,
    "s": 60.92,
    "l": 34.118
  },
  "oklch": {
    "l": 0.61909,
    "c": 0.12336,
    "h": 110.6
  },
  "luminance": 0.24275
}

Semantic roles & 50–950 ramp

primary
#8A8C22
secondary
#5351B9
accent
#44E447
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #8A8C22

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

Preview Lab → · Contrast checker → · Palette generator →

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