#8A8327#8A8327

#8A8327 is a mid, moderate yellow. Relative luminance 0.218; OKLCH L 59.9% C 0.111 H 105.0°. Best body text is #000000 at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#8A8327
RGBrgb(138, 131, 39)
HSLhsl(56, 56%, 35%)
HSVhsv(56, 72%, 54%)
CMYKcmyk(0%, 5.1%, 71.7%, 45.9%)
CIE-LABlab(53.80, -8.67, 48.13)
CIE-LCHlch(53.80, 48.90, 100.22°)
OKLaboklab(59.87% -0.0286 0.1072)
OKLCHoklch(59.87% 0.111 105)
XYZxyz(18.9645, 21.7831, 5.1247)
Luminance0.2178 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8327 #272E8A
analogous
#8A5227 #8A8327 #5F8A27
triadic
#8A8327 #278A83 #83278A
tetradic
#8A8327 #278A52 #272E8A #8A275F
square
#8A8327 #278A52 #272E8A #8A275F
split-complementary
#8A8327 #275F8A #52278A
monochromatic
#2B280C #5A561A #8A8327 #BAB034 #D1C85B

Accessibility & contrast

On white

3.92
#8A8327 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.36
#8A8327 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8327
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8327#FFFFFF#000000##000000
##8A83271.003.925.365.36
#FFFFFF3.921.0021.0021.00
#0000005.3621.001.001.00
##0000005.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E19
Deuteranopia (green-blind)
#91822D
Tritanopia (blue-blind)
#947A71
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #8a8327;
/* rgb */ color: rgb(138, 131, 39);
/* oklch */ color: oklch(59.9% 0.111 105.0);
Tailwind
colors: {
  custom: {
    50: '#afa667',
    500: '#8a8327',
    950: '#000000',
  },
}
SCSS
$custom: #8a8327;
$custom-light: #afa667;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8327",
  "rgb": {
    "r": 138,
    "g": 131,
    "b": 39
  },
  "hsl": {
    "h": 55.758,
    "s": 55.932,
    "l": 34.706
  },
  "oklch": {
    "l": 0.59871,
    "c": 0.11093,
    "h": 105
  },
  "luminance": 0.21782
}

Semantic roles & 50–950 ramp

primary
#8A8327
secondary
#575EB6
accent
#53DF49
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8A8327

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

Preview Lab → · Contrast checker → · Palette generator →

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