#8A8322#8A8322

#8A8322 is a mid, moderate yellow. Relative luminance 0.218; OKLCH L 59.8% C 0.114 H 105.2°. Best body text is #000000 at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#8A8322
RGBrgb(138, 131, 34)
HSLhsl(56, 60%, 34%)
HSVhsv(56, 75%, 54%)
CMYKcmyk(0%, 5.1%, 75.4%, 45.9%)
CIE-LABlab(53.76, -8.93, 50.04)
CIE-LCHlch(53.76, 50.83, 100.12°)
OKLaboklab(59.84% -0.0299 0.1103)
OKLCHoklch(59.84% 0.114 105.2)
XYZxyz(18.8871, 21.7521, 4.7168)
Luminance0.2175 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8322 #22298A
analogous
#8A4F22 #8A8322 #5D8A22
triadic
#8A8322 #228A83 #83228A
tetradic
#8A8322 #228A4F #22298A #8A225D
square
#8A8322 #228A4F #22298A #8A225D
split-complementary
#8A8322 #225D8A #4F228A
monochromatic
#28260A #595416 #8A8322 #BBB22E #D4CC52

Accessibility & contrast

On white

3.93
#8A8322 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.35
#8A8322 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8322
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8322#FFFFFF#000000##000000
##8A83221.003.935.355.35
#FFFFFF3.931.0021.0021.00
#0000005.3521.001.001.00
##0000005.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E0F
Deuteranopia (green-blind)
#918229
Tritanopia (blue-blind)
#957A70
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #8a8322;
/* rgb */ color: rgb(138, 131, 34);
/* oklch */ color: oklch(59.8% 0.114 105.2);
Tailwind
colors: {
  custom: {
    50: '#afa665',
    500: '#8a8322',
    950: '#000000',
  },
}
SCSS
$custom: #8a8322;
$custom-light: #afa665;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8322",
  "rgb": {
    "r": 138,
    "g": 131,
    "b": 34
  },
  "hsl": {
    "h": 55.962,
    "s": 60.465,
    "l": 33.725
  },
  "oklch": {
    "l": 0.59835,
    "c": 0.11423,
    "h": 105.2
  },
  "luminance": 0.21751
}

Semantic roles & 50–950 ramp

primary
#8A8322
secondary
#5057B8
accent
#4FE444
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8A8322

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

Preview Lab → · Contrast checker → · Palette generator →

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