#8A8221#8A8221

#8A8221 is a mid, moderate yellow. Relative luminance 0.215; OKLCH L 59.6% C 0.114 H 104.5°. Best body text is #000000 at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#8A8221
RGBrgb(138, 130, 33)
HSLhsl(55, 61%, 34%)
HSVhsv(55, 76%, 54%)
CMYKcmyk(0%, 5.8%, 76.1%, 45.9%)
CIE-LABlab(53.47, -8.43, 50.13)
CIE-LCHlch(53.47, 50.84, 99.54°)
OKLaboklab(59.6% -0.0286 0.1103)
OKLCHoklch(59.6% 0.114 104.5)
XYZxyz(18.7392, 21.4791, 4.5973)
Luminance0.2148 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8221 #21298A
analogous
#8A4D21 #8A8221 #5D8A21
triadic
#8A8221 #218A82 #82218A
tetradic
#8A8221 #218A4D #21298A #8A215D
square
#8A8221 #218A4D #21298A #8A215D
split-complementary
#8A8221 #215D8A #4D218A
monochromatic
#272509 #595315 #8A8221 #BBB12D #D5CB50

Accessibility & contrast

On white

3.97
#8A8221 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.30
#8A8221 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8221
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8221#FFFFFF#000000##000000
##8A82211.003.975.305.30
#FFFFFF3.971.0021.0021.00
#0000005.3021.001.001.00
##0000005.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7D0E
Deuteranopia (green-blind)
#918228
Tritanopia (blue-blind)
#95796F
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #8a8221;
/* rgb */ color: rgb(138, 130, 33);
/* oklch */ color: oklch(59.6% 0.114 104.5);
Tailwind
colors: {
  custom: {
    50: '#afa664',
    500: '#8a8221',
    950: '#000000',
  },
}
SCSS
$custom: #8a8221;
$custom-light: #afa664;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8221",
  "rgb": {
    "r": 138,
    "g": 130,
    "b": 33
  },
  "hsl": {
    "h": 55.429,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.59599,
    "c": 0.1139,
    "h": 104.5
  },
  "luminance": 0.21478
}

Semantic roles & 50–950 ramp

primary
#8A8221
secondary
#4E56B9
accent
#50E543
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8A8221

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

Preview Lab → · Contrast checker → · Palette generator →

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