#8A8A22#8A8A22

#8A8A22 is a mid, vivid yellow. Relative luminance 0.237; OKLCH L 61.4% C 0.121 H 109.5°. Best body text is #000000 at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#8A8A22
RGBrgb(138, 138, 34)
HSLhsl(60, 60%, 34%)
HSVhsv(60, 75%, 54%)
CMYKcmyk(0%, 0%, 75.4%, 45.9%)
CIE-LABlab(55.78, -12.71, 51.95)
CIE-LCHlch(55.78, 53.48, 103.75°)
OKLaboklab(61.45% -0.0405 0.1143)
OKLCHoklch(61.45% 0.121 109.5)
XYZxyz(19.8592, 23.6963, 5.0408)
Luminance0.2370 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8A22 #22228A
analogous
#8A5622 #8A8A22 #568A22
triadic
#8A8A22 #228A8A #8A228A
tetradic
#8A8A22 #228A56 #22228A #8A2256
square
#8A8A22 #228A56 #22228A #8A2256
split-complementary
#8A8A22 #22568A #56228A
monochromatic
#28280A #595916 #8A8A22 #BBBB2E #D4D452

Accessibility & contrast

On white

3.66
#8A8A22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.74
#8A8A22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8A22
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8A22#FFFFFF#000000##000000
##8A8A221.003.665.745.74
#FFFFFF3.661.0021.0021.00
#0000005.7421.001.001.00
##0000005.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#96840C
Deuteranopia (green-blind)
#97872A
Tritanopia (blue-blind)
#948176
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #8a8a22;
/* rgb */ color: rgb(138, 138, 34);
/* oklch */ color: oklch(61.4% 0.121 109.5);
Tailwind
colors: {
  custom: {
    50: '#afab66',
    500: '#8a8a22',
    950: '#000000',
  },
}
SCSS
$custom: #8a8a22;
$custom-light: #afab66;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8a22",
  "rgb": {
    "r": 138,
    "g": 138,
    "b": 34
  },
  "hsl": {
    "h": 60,
    "s": 60.465,
    "l": 33.725
  },
  "oklch": {
    "l": 0.61445,
    "c": 0.12126,
    "h": 109.5
  },
  "luminance": 0.23696
}

Semantic roles & 50–950 ramp

primary
#8A8A22
secondary
#5050B8
accent
#44E444
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #8A8A22

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

Preview Lab → · Contrast checker → · Palette generator →

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