#8A8721#8A8721

#8A8721 is a mid, moderate yellow. Relative luminance 0.228; OKLCH L 60.7% C 0.119 H 107.7°. Best body text is #000000 at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#8A8721
RGBrgb(138, 135, 33)
HSLhsl(58, 61%, 34%)
HSVhsv(58, 76%, 54%)
CMYKcmyk(0%, 2.2%, 76.1%, 45.9%)
CIE-LABlab(54.91, -11.15, 51.49)
CIE-LCHlch(54.91, 52.68, 102.22°)
OKLaboklab(60.75% -0.0362 0.1131)
OKLCHoklch(60.75% 0.119 107.7)
XYZxyz(19.4205, 22.8417, 4.8244)
Luminance0.2284 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8721 #21248A
analogous
#8A5221 #8A8721 #588A21
triadic
#8A8721 #218A87 #87218A
tetradic
#8A8721 #218A52 #21248A #8A2158
square
#8A8721 #218A52 #21248A #8A2158
split-complementary
#8A8721 #21588A #52218A
monochromatic
#272609 #595715 #8A8721 #BBB72D #D5D150

Accessibility & contrast

On white

3.77
#8A8721 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.57
#8A8721 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8721
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8721#FFFFFF#000000##000000
##8A87211.003.775.575.57
#FFFFFF3.771.0021.0021.00
#0000005.5721.001.001.00
##0000005.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#93810B
Deuteranopia (green-blind)
#958529
Tritanopia (blue-blind)
#947E74
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #8a8721;
/* rgb */ color: rgb(138, 135, 33);
/* oklch */ color: oklch(60.7% 0.119 107.7);
Tailwind
colors: {
  custom: {
    50: '#afa965',
    500: '#8a8721',
    950: '#000000',
  },
}
SCSS
$custom: #8a8721;
$custom-light: #afa965;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8721",
  "rgb": {
    "r": 138,
    "g": 135,
    "b": 33
  },
  "hsl": {
    "h": 58.286,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.60746,
    "c": 0.11878,
    "h": 107.7
  },
  "luminance": 0.22841
}

Semantic roles & 50–950 ramp

primary
#8A8721
secondary
#4E51B9
accent
#48E543
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8A8721

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

Preview Lab → · Contrast checker → · Palette generator →

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