#8A508C#8A508C

#8A508C is a mid, moderate purple. Relative luminance 0.130; OKLCH L 52.1% C 0.113 H 325.9°. Best body text is #FFFFFF at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#8A508C
RGBrgb(138, 80, 140)
HSLhsl(298, 27%, 43%)
HSVhsv(298, 43%, 55%)
CMYKcmyk(1.4%, 42.9%, 0%, 45.1%)
CIE-LABlab(42.82, 34.06, -23.26)
CIE-LCHlch(42.82, 41.24, 325.67°)
OKLaboklab(52.09% 0.0938 -0.0636)
OKLCHoklch(52.09% 0.113 325.9)
XYZxyz(18.0831, 13.0349, 26.3693)
Luminance0.1303 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A508C #528C50
analogous
#6C508C #8A508C #8C5070
triadic
#8A508C #8C8A50 #508C8A
tetradic
#8A508C #8C6C50 #528C50 #50708C
square
#8A508C #8C6C50 #528C50 #50708C
split-complementary
#8A508C #708C50 #508C6C
monochromatic
#3D233E #643A65 #8A508C #AA6DAC #C194C2

Accessibility & contrast

On white

5.82
#8A508C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#8A508C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A508C
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A508C#FFFFFF#000000##FFFFFF
##8A508C1.005.823.615.82
#FFFFFF5.821.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A608E
Deuteranopia (green-blind)
#5A688A
Tritanopia (blue-blind)
#8D5667
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8a508c;
/* rgb */ color: rgb(138, 80, 140);
/* oklch */ color: oklch(52.1% 0.113 325.9);
Tailwind
colors: {
  custom: {
    50: '#ad83ae',
    500: '#8a508c',
    950: '#000000',
  },
}
SCSS
$custom: #8a508c;
$custom-light: #ad83ae;
$custom-dark: #000000;
JSON
{
  "hex": "#8a508c",
  "rgb": {
    "r": 138,
    "g": 80,
    "b": 140
  },
  "hsl": {
    "h": 298,
    "s": 27.273,
    "l": 43.137
  },
  "oklch": {
    "l": 0.52088,
    "c": 0.11332,
    "h": 325.9
  },
  "luminance": 0.13034
}

Semantic roles & 50–950 ramp

primary
#8A508C
secondary
#8AAF89
accent
#C46467
background
#FAF8FA
surface
#F4EFF4
border
#CECACE
text
#100B10
muted
#7F7C7F

Preview Lab

Preview with #8A508C

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

Preview Lab → · Contrast checker → · Palette generator →

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