#8A8B22#8A8B22

#8A8B22 is a mid, vivid yellow. Relative luminance 0.240; OKLCH L 61.7% C 0.122 H 110.1°. Best body text is #000000 at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#8A8B22
RGBrgb(138, 139, 34)
HSLhsl(61, 61%, 34%)
HSVhsv(61, 76%, 55%)
CMYKcmyk(0.7%, 0%, 75.5%, 45.5%)
CIE-LABlab(56.07, -13.25, 52.22)
CIE-LCHlch(56.07, 53.88, 104.23°)
OKLaboklab(61.68% -0.0419 0.1149)
OKLCHoklch(61.68% 0.122 110.1)
XYZxyz(20.0033, 23.9846, 5.0888)
Luminance0.2398 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8B22 #23228B
analogous
#8B5822 #8A8B22 #568B22
triadic
#8A8B22 #228A8B #8B228A
tetradic
#8A8B22 #228B58 #23228B #8B2256
square
#8A8B22 #228B58 #23228B #8B2256
split-complementary
#8A8B22 #22568B #58228B
monochromatic
#28290A #595A16 #8A8B22 #BBBC2E #D4D553

Accessibility & contrast

On white

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

On black

5.80
#8A8B22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8B22
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8B22#FFFFFF#000000##000000
##8A8B221.003.625.805.80
#FFFFFF3.621.0021.0021.00
#0000005.8021.001.001.00
##0000005.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#96850B
Deuteranopia (green-blind)
#98882A
Tritanopia (blue-blind)
#948277
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #8a8b22;
/* rgb */ color: rgb(138, 139, 34);
/* oklch */ color: oklch(61.7% 0.122 110.1);
Tailwind
colors: {
  custom: {
    50: '#afac66',
    500: '#8a8b22',
    950: '#000000',
  },
}
SCSS
$custom: #8a8b22;
$custom-light: #afac66;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8b22",
  "rgb": {
    "r": 138,
    "g": 139,
    "b": 34
  },
  "hsl": {
    "h": 60.571,
    "s": 60.694,
    "l": 33.922
  },
  "oklch": {
    "l": 0.61677,
    "c": 0.1223,
    "h": 110.1
  },
  "luminance": 0.23984
}

Semantic roles & 50–950 ramp

primary
#8A8B22
secondary
#5150B8
accent
#44E445
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #8A8B22

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

Preview Lab → · Contrast checker → · Palette generator →

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