#8A8821#8A8821

#8A8821 is a mid, moderate yellow. Relative luminance 0.231; OKLCH L 61.0% C 0.120 H 108.3°. Best body text is #000000 at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#8A8821
RGBrgb(138, 136, 33)
HSLhsl(59, 61%, 34%)
HSVhsv(59, 76%, 54%)
CMYKcmyk(0%, 1.4%, 76.1%, 45.9%)
CIE-LABlab(55.20, -11.69, 51.76)
CIE-LCHlch(55.20, 53.06, 102.72°)
OKLaboklab(60.98% -0.0377 0.1137)
OKLCHoklch(60.98% 0.12 108.3)
XYZxyz(19.5607, 23.1220, 4.8712)
Luminance0.2312 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8821 #21238A
analogous
#8A5321 #8A8821 #578A21
triadic
#8A8821 #218A88 #88218A
tetradic
#8A8821 #218A53 #21238A #8A2157
square
#8A8821 #218A53 #21238A #8A2157
split-complementary
#8A8821 #21578A #53218A
monochromatic
#272709 #595715 #8A8821 #BBB92D #D5D350

Accessibility & contrast

On white

3.73
#8A8821 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.62
#8A8821 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8821
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8821#FFFFFF#000000##000000
##8A88211.003.735.625.62
#FFFFFF3.731.0021.0021.00
#0000005.6221.001.001.00
##0000005.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#94820A
Deuteranopia (green-blind)
#958629
Tritanopia (blue-blind)
#947F74
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #8a8821;
/* rgb */ color: rgb(138, 136, 33);
/* oklch */ color: oklch(61.0% 0.120 108.3);
Tailwind
colors: {
  custom: {
    50: '#afaa65',
    500: '#8a8821',
    950: '#000000',
  },
}
SCSS
$custom: #8a8821;
$custom-light: #afaa65;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8821",
  "rgb": {
    "r": 138,
    "g": 136,
    "b": 33
  },
  "hsl": {
    "h": 58.857,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.60977,
    "c": 0.11979,
    "h": 108.3
  },
  "luminance": 0.23121
}

Semantic roles & 50–950 ramp

primary
#8A8821
secondary
#4E50B9
accent
#46E543
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #8A8821

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

Preview Lab → · Contrast checker → · Palette generator →

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