#8A8922#8A8922

#8A8922 is a mid, vivid yellow. Relative luminance 0.234; OKLCH L 61.2% C 0.120 H 108.9°. Best body text is #000000 at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#8A8922
RGBrgb(138, 137, 34)
HSLhsl(59, 60%, 34%)
HSVhsv(59, 75%, 54%)
CMYKcmyk(0%, 0.7%, 75.4%, 45.9%)
CIE-LABlab(55.49, -12.18, 51.68)
CIE-LCHlch(55.49, 53.09, 103.26°)
OKLaboklab(61.21% -0.039 0.1137)
OKLCHoklch(61.21% 0.12 108.9)
XYZxyz(19.7164, 23.4107, 4.9932)
Luminance0.2341 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8922 #22238A
analogous
#8A5522 #8A8922 #578A22
triadic
#8A8922 #228A89 #89228A
tetradic
#8A8922 #228A55 #22238A #8A2257
square
#8A8922 #228A55 #22238A #8A2257
split-complementary
#8A8922 #22578A #55228A
monochromatic
#28280A #595816 #8A8922 #BBBA2E #D4D352

Accessibility & contrast

On white

3.70
#8A8922 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.68
#8A8922 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8922
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8922#FFFFFF#000000##000000
##8A89221.003.705.685.68
#FFFFFF3.701.0021.0021.00
#0000005.6821.001.001.00
##0000005.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#95830C
Deuteranopia (green-blind)
#96862A
Tritanopia (blue-blind)
#948075
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #8a8922;
/* rgb */ color: rgb(138, 137, 34);
/* oklch */ color: oklch(61.2% 0.120 108.9);
Tailwind
colors: {
  custom: {
    50: '#afab66',
    500: '#8a8922',
    950: '#000000',
  },
}
SCSS
$custom: #8a8922;
$custom-light: #afab66;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8922",
  "rgb": {
    "r": 138,
    "g": 137,
    "b": 34
  },
  "hsl": {
    "h": 59.423,
    "s": 60.465,
    "l": 33.725
  },
  "oklch": {
    "l": 0.61214,
    "c": 0.12022,
    "h": 108.9
  },
  "luminance": 0.2341
}

Semantic roles & 50–950 ramp

primary
#8A8922
secondary
#5051B8
accent
#46E444
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #8A8922

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

Preview Lab → · Contrast checker → · Palette generator →

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