#8A8520#8A8520

#8A8520 is a mid, moderate yellow. Relative luminance 0.223; OKLCH L 60.3% C 0.117 H 106.5°. Best body text is #000000 at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#8A8520
RGBrgb(138, 133, 32)
HSLhsl(57, 62%, 33%)
HSVhsv(57, 77%, 54%)
CMYKcmyk(0%, 3.6%, 76.8%, 45.9%)
CIE-LABlab(54.33, -10.11, 51.30)
CIE-LCHlch(54.33, 52.28, 101.15°)
OKLaboklab(60.28% -0.0334 0.1125)
OKLCHoklch(60.28% 0.117 106.5)
XYZxyz(19.1303, 22.2833, 4.6596)
Luminance0.2228 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8520 #20258A
analogous
#8A5020 #8A8520 #5A8A20
triadic
#8A8520 #208A85 #85208A
tetradic
#8A8520 #208A50 #20258A #8A205A
square
#8A8520 #208A50 #20258A #8A205A
split-complementary
#8A8520 #205A8A #50208A
monochromatic
#272509 #585514 #8A8520 #BCB52C #D6D04E

Accessibility & contrast

On white

3.85
#8A8520 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.46
#8A8520 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8520
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8520#FFFFFF#000000##000000
##8A85201.003.855.465.46
#FFFFFF3.851.0021.0021.00
#0000005.4621.001.001.00
##0000005.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#91800A
Deuteranopia (green-blind)
#938428
Tritanopia (blue-blind)
#957C72
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #8a8520;
/* rgb */ color: rgb(138, 133, 32);
/* oklch */ color: oklch(60.3% 0.117 106.5);
Tailwind
colors: {
  custom: {
    50: '#afa864',
    500: '#8a8520',
    950: '#000000',
  },
}
SCSS
$custom: #8a8520;
$custom-light: #afa864;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8520",
  "rgb": {
    "r": 138,
    "g": 133,
    "b": 32
  },
  "hsl": {
    "h": 57.17,
    "s": 62.353,
    "l": 33.333
  },
  "oklch": {
    "l": 0.6028,
    "c": 0.11739,
    "h": 106.5
  },
  "luminance": 0.22283
}

Semantic roles & 50–950 ramp

primary
#8A8520
secondary
#4D52B9
accent
#4AE542
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8A8520

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

Preview Lab → · Contrast checker → · Palette generator →

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