#8A8827#8A8827

#8A8827 is a mid, moderate yellow. Relative luminance 0.232; OKLCH L 61.0% C 0.116 H 108.2°. Best body text is #000000 at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#8A8827
RGBrgb(138, 136, 39)
HSLhsl(59, 56%, 35%)
HSVhsv(59, 72%, 54%)
CMYKcmyk(0%, 1.4%, 71.7%, 45.9%)
CIE-LABlab(55.24, -11.39, 49.55)
CIE-LCHlch(55.24, 50.84, 102.94°)
OKLaboklab(61.02% -0.0363 0.1102)
OKLCHoklch(61.02% 0.116 108.2)
XYZxyz(19.6523, 23.1587, 5.3539)
Luminance0.2316 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8827 #27298A
analogous
#8A5727 #8A8827 #5B8A27
triadic
#8A8827 #278A88 #88278A
tetradic
#8A8827 #278A57 #27298A #8A275B
square
#8A8827 #278A57 #27298A #8A275B
split-complementary
#8A8827 #275B8A #57278A
monochromatic
#2B2A0C #5A591A #8A8827 #BAB734 #D1CE5B

Accessibility & contrast

On white

3.73
#8A8827 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.63
#8A8827 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8827
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8827#FFFFFF#000000##000000
##8A88271.003.735.635.63
#FFFFFF3.731.0021.0021.00
#0000005.6321.001.001.00
##0000005.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#938217
Deuteranopia (green-blind)
#95862E
Tritanopia (blue-blind)
#947F75
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #8a8827;
/* rgb */ color: rgb(138, 136, 39);
/* oklch */ color: oklch(61.0% 0.116 108.2);
Tailwind
colors: {
  custom: {
    50: '#afaa68',
    500: '#8a8827',
    950: '#000000',
  },
}
SCSS
$custom: #8a8827;
$custom-light: #afaa68;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8827",
  "rgb": {
    "r": 138,
    "g": 136,
    "b": 39
  },
  "hsl": {
    "h": 58.788,
    "s": 55.932,
    "l": 34.706
  },
  "oklch": {
    "l": 0.61019,
    "c": 0.11598,
    "h": 108.2
  },
  "luminance": 0.23158
}

Semantic roles & 50–950 ramp

primary
#8A8827
secondary
#5759B6
accent
#4CDF49
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #8A8827

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

Preview Lab → · Contrast checker → · Palette generator →

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