#8A8E22#8A8E22

#8A8E22 is a light, vivid yellow. Relative luminance 0.249; OKLCH L 62.4% C 0.126 H 111.7°. Best body text is #000000 at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#8A8E22
RGBrgb(138, 142, 34)
HSLhsl(62, 61%, 35%)
HSVhsv(62, 76%, 56%)
CMYKcmyk(2.8%, 0%, 76.1%, 44.3%)
CIE-LABlab(56.94, -14.84, 53.04)
CIE-LCHlch(56.94, 55.07, 105.63°)
OKLaboklab(62.37% -0.0464 0.1166)
OKLCHoklch(62.37% 0.126 111.7)
XYZxyz(20.4437, 24.8653, 5.2356)
Luminance0.2487 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8E22 #26228E
analogous
#8E5C22 #8A8E22 #548E22
triadic
#8A8E22 #228A8E #8E228A
tetradic
#8A8E22 #228E5C #26228E #8E2254
square
#8A8E22 #228E5C #26228E #8E2254
split-complementary
#8A8E22 #22548E #5C228E
monochromatic
#2A2B0A #5A5D16 #8A8E22 #BABF2E #D1D654

Accessibility & contrast

On white

3.52
#8A8E22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.97
#8A8E22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8E22
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8E22#FFFFFF#000000##000000
##8A8E221.003.525.975.97
#FFFFFF3.521.0021.0021.00
#0000005.9721.001.001.00
##0000005.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#998709
Deuteranopia (green-blind)
#9A8A2B
Tritanopia (blue-blind)
#94857A
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #8a8e22;
/* rgb */ color: rgb(138, 142, 34);
/* oklch */ color: oklch(62.4% 0.126 111.7);
Tailwind
colors: {
  custom: {
    50: '#afae66',
    500: '#8a8e22',
    950: '#000000',
  },
}
SCSS
$custom: #8a8e22;
$custom-light: #afae66;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8e22",
  "rgb": {
    "r": 138,
    "g": 142,
    "b": 34
  },
  "hsl": {
    "h": 62.222,
    "s": 61.364,
    "l": 34.51
  },
  "oklch": {
    "l": 0.62374,
    "c": 0.12551,
    "h": 111.7
  },
  "luminance": 0.24865
}

Semantic roles & 50–950 ramp

primary
#8A8E22
secondary
#5652BA
accent
#43E449
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #8A8E22

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

Preview Lab → · Contrast checker → · Palette generator →

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