#8A8027#8A8027

#8A8027 is a mid, moderate yellow. Relative luminance 0.210; OKLCH L 59.2% C 0.108 H 102.8°. Best body text is #000000 at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#8A8027
RGBrgb(138, 128, 39)
HSLhsl(54, 56%, 35%)
HSVhsv(54, 72%, 54%)
CMYKcmyk(0%, 7.2%, 71.7%, 45.9%)
CIE-LABlab(52.94, -7.03, 47.27)
CIE-LCHlch(52.94, 47.79, 98.45°)
OKLaboklab(59.19% -0.024 0.1054)
OKLCHoklch(59.19% 0.108 102.8)
XYZxyz(18.5674, 20.9889, 4.9923)
Luminance0.2099 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8027 #27318A
analogous
#8A4E27 #8A8027 #638A27
triadic
#8A8027 #278A80 #80278A
tetradic
#8A8027 #278A4E #27318A #8A2763
square
#8A8027 #278A4E #27318A #8A2763
split-complementary
#8A8027 #27638A #4E278A
monochromatic
#2B270C #5A541A #8A8027 #BAAC34 #D1C55B

Accessibility & contrast

On white

4.04
#8A8027 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.20
#8A8027 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8027
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8027#FFFFFF#000000##000000
##8A80271.004.045.205.20
#FFFFFF4.041.0021.0021.00
#0000005.2021.001.001.00
##0000005.2021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a8027;
/* rgb */ color: rgb(138, 128, 39);
/* oklch */ color: oklch(59.2% 0.108 102.8);
Tailwind
colors: {
  custom: {
    50: '#afa467',
    500: '#8a8027',
    950: '#000000',
  },
}
SCSS
$custom: #8a8027;
$custom-light: #afa467;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8027",
  "rgb": {
    "r": 138,
    "g": 128,
    "b": 39
  },
  "hsl": {
    "h": 53.939,
    "s": 55.932,
    "l": 34.706
  },
  "oklch": {
    "l": 0.59188,
    "c": 0.10806,
    "h": 102.8
  },
  "luminance": 0.20988
}

Semantic roles & 50–950 ramp

primary
#8A8027
secondary
#5761B6
accent
#58DF49
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8A8027

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

Preview Lab → · Contrast checker → · Palette generator →

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