#8A8720#8A8720

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

Color values

HEX#8A8720
RGBrgb(138, 135, 32)
HSLhsl(58, 62%, 33%)
HSVhsv(58, 77%, 54%)
CMYKcmyk(0%, 2.2%, 76.8%, 45.9%)
CIE-LABlab(54.90, -11.19, 51.83)
CIE-LCHlch(54.90, 53.03, 102.19°)
OKLaboklab(60.74% -0.0364 0.1137)
OKLCHoklch(60.74% 0.119 107.8)
XYZxyz(19.4067, 22.8362, 4.7518)
Luminance0.2284 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8720 #20238A
analogous
#8A5220 #8A8720 #588A20
triadic
#8A8720 #208A87 #87208A
tetradic
#8A8720 #208A52 #20238A #8A2058
square
#8A8720 #208A52 #20238A #8A2058
split-complementary
#8A8720 #20588A #52208A
monochromatic
#272609 #585614 #8A8720 #BCB82C #D6D24E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A8720#FFFFFF#000000##000000
##8A87201.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)
#938108
Deuteranopia (green-blind)
#958528
Tritanopia (blue-blind)
#947E74
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #8a8720;
/* rgb */ color: rgb(138, 135, 32);
/* oklch */ color: oklch(60.7% 0.119 107.8);
Tailwind
colors: {
  custom: {
    50: '#afa964',
    500: '#8a8720',
    950: '#000000',
  },
}
SCSS
$custom: #8a8720;
$custom-light: #afa964;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8720",
  "rgb": {
    "r": 138,
    "g": 135,
    "b": 32
  },
  "hsl": {
    "h": 58.302,
    "s": 62.353,
    "l": 33.333
  },
  "oklch": {
    "l": 0.6074,
    "c": 0.11937,
    "h": 107.8
  },
  "luminance": 0.22836
}

Semantic roles & 50–950 ramp

primary
#8A8720
secondary
#4D50B9
accent
#47E542
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8A8720

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

Preview Lab → · Contrast checker → · Palette generator →

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