#8A8020#8A8020

#8A8020 is a mid, moderate yellow. Relative luminance 0.209; OKLCH L 59.1% C 0.113 H 103.2°. Best body text is #000000 at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#8A8020
RGBrgb(138, 128, 32)
HSLhsl(54, 62%, 33%)
HSVhsv(54, 77%, 54%)
CMYKcmyk(0%, 7.2%, 76.8%, 45.9%)
CIE-LABlab(52.89, -7.38, 49.95)
CIE-LCHlch(52.89, 50.50, 98.40°)
OKLaboklab(59.14% -0.0257 0.1097)
OKLCHoklch(59.14% 0.113 103.2)
XYZxyz(18.4619, 20.9467, 4.4369)
Luminance0.2095 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8020 #202A8A
analogous
#8A4B20 #8A8020 #5F8A20
triadic
#8A8020 #208A80 #80208A
tetradic
#8A8020 #208A4B #202A8A #8A205F
square
#8A8020 #208A4B #202A8A #8A205F
split-complementary
#8A8020 #205F8A #4B208A
monochromatic
#272409 #585214 #8A8020 #BCAE2C #D6C94E

Accessibility & contrast

On white

4.05
#8A8020 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.19
#8A8020 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8020
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8020#FFFFFF#000000##000000
##8A80201.004.055.195.19
#FFFFFF4.051.0021.0021.00
#0000005.1921.001.001.00
##0000005.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7C0C
Deuteranopia (green-blind)
#8F8027
Tritanopia (blue-blind)
#95776E
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #8a8020;
/* rgb */ color: rgb(138, 128, 32);
/* oklch */ color: oklch(59.1% 0.113 103.2);
Tailwind
colors: {
  custom: {
    50: '#b0a463',
    500: '#8a8020',
    950: '#000000',
  },
}
SCSS
$custom: #8a8020;
$custom-light: #b0a463;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8020",
  "rgb": {
    "r": 138,
    "g": 128,
    "b": 32
  },
  "hsl": {
    "h": 54.34,
    "s": 62.353,
    "l": 33.333
  },
  "oklch": {
    "l": 0.59137,
    "c": 0.11265,
    "h": 103.2
  },
  "luminance": 0.20946
}

Semantic roles & 50–950 ramp

primary
#8A8020
secondary
#4D57B9
accent
#52E542
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8A8020

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

Preview Lab → · Contrast checker → · Palette generator →

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