#8A8420#8A8420

#8A8420 is a mid, moderate yellow. Relative luminance 0.220; OKLCH L 60.1% C 0.116 H 105.9°. Best body text is #000000 at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#8A8420
RGBrgb(138, 132, 32)
HSLhsl(57, 62%, 33%)
HSVhsv(57, 77%, 54%)
CMYKcmyk(0%, 4.3%, 76.8%, 45.9%)
CIE-LABlab(54.04, -9.57, 51.03)
CIE-LCHlch(54.04, 51.92, 100.62°)
OKLaboklab(60.05% -0.0319 0.112)
OKLCHoklch(60.05% 0.116 105.9)
XYZxyz(18.9940, 22.0108, 4.6142)
Luminance0.2201 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8420 #20268A
analogous
#8A4F20 #8A8420 #5B8A20
triadic
#8A8420 #208A84 #84208A
tetradic
#8A8420 #208A4F #20268A #8A205B
square
#8A8420 #208A4F #20268A #8A205B
split-complementary
#8A8420 #205B8A #4F208A
monochromatic
#272509 #585414 #8A8420 #BCB42C #D6CE4E

Accessibility & contrast

On white

3.89
#8A8420 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.40
#8A8420 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8420
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8420#FFFFFF#000000##000000
##8A84201.003.895.405.40
#FFFFFF3.891.0021.0021.00
#0000005.4021.001.001.00
##0000005.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F0A
Deuteranopia (green-blind)
#928328
Tritanopia (blue-blind)
#957B71
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #8a8420;
/* rgb */ color: rgb(138, 132, 32);
/* oklch */ color: oklch(60.1% 0.116 105.9);
Tailwind
colors: {
  custom: {
    50: '#afa764',
    500: '#8a8420',
    950: '#000000',
  },
}
SCSS
$custom: #8a8420;
$custom-light: #afa764;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8420",
  "rgb": {
    "r": 138,
    "g": 132,
    "b": 32
  },
  "hsl": {
    "h": 56.604,
    "s": 62.353,
    "l": 33.333
  },
  "oklch": {
    "l": 0.6005,
    "c": 0.1164,
    "h": 105.9
  },
  "luminance": 0.2201
}

Semantic roles & 50–950 ramp

primary
#8A8420
secondary
#4D53B9
accent
#4CE542
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8A8420

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

Preview Lab → · Contrast checker → · Palette generator →

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