#8A8320#8A8320

#8A8320 is a mid, moderate yellow. Relative luminance 0.217; OKLCH L 59.8% C 0.115 H 105.2°. Best body text is #000000 at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#8A8320
RGBrgb(138, 131, 32)
HSLhsl(56, 62%, 33%)
HSVhsv(56, 77%, 54%)
CMYKcmyk(0%, 5.1%, 76.8%, 45.9%)
CIE-LABlab(53.75, -9.02, 50.76)
CIE-LCHlch(53.75, 51.56, 100.08°)
OKLaboklab(59.82% -0.0303 0.1114)
OKLCHoklch(59.82% 0.115 105.2)
XYZxyz(18.8590, 21.7409, 4.5692)
Luminance0.2174 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8320 #20278A
analogous
#8A4E20 #8A8320 #5C8A20
triadic
#8A8320 #208A83 #83208A
tetradic
#8A8320 #208A4E #20278A #8A205C
square
#8A8320 #208A4E #20278A #8A205C
split-complementary
#8A8320 #205C8A #4E208A
monochromatic
#272509 #585414 #8A8320 #BCB22C #D6CD4E

Accessibility & contrast

On white

3.93
#8A8320 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.35
#8A8320 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8320
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8320#FFFFFF#000000##000000
##8A83201.003.935.355.35
#FFFFFF3.931.0021.0021.00
#0000005.3521.001.001.00
##0000005.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E0B
Deuteranopia (green-blind)
#928227
Tritanopia (blue-blind)
#957A70
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #8a8320;
/* rgb */ color: rgb(138, 131, 32);
/* oklch */ color: oklch(59.8% 0.115 105.2);
Tailwind
colors: {
  custom: {
    50: '#afa664',
    500: '#8a8320',
    950: '#000000',
  },
}
SCSS
$custom: #8a8320;
$custom-light: #afa664;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8320",
  "rgb": {
    "r": 138,
    "g": 131,
    "b": 32
  },
  "hsl": {
    "h": 56.038,
    "s": 62.353,
    "l": 33.333
  },
  "oklch": {
    "l": 0.59821,
    "c": 0.11545,
    "h": 105.2
  },
  "luminance": 0.2174
}

Semantic roles & 50–950 ramp

primary
#8A8320
secondary
#4D54B9
accent
#4DE542
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8A8320

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

Preview Lab → · Contrast checker → · Palette generator →

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