#8A508B#8A508B

#8A508B is a mid, moderate purple. Relative luminance 0.130; OKLCH L 52.0% C 0.112 H 326.4°. Best body text is #FFFFFF at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#8A508B
RGBrgb(138, 80, 139)
HSLhsl(299, 27%, 43%)
HSVhsv(299, 42%, 55%)
CMYKcmyk(0.7%, 42.4%, 0%, 45.5%)
CIE-LABlab(42.77, 33.86, -22.72)
CIE-LCHlch(42.77, 40.78, 326.13°)
OKLaboklab(52.04% 0.0936 -0.0621)
OKLCHoklch(52.04% 0.112 326.4)
XYZxyz(18.0097, 13.0055, 25.9828)
Luminance0.1300 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A508B #518B50
analogous
#6C508B #8A508B #8B506E
triadic
#8A508B #8B8A50 #508B8A
tetradic
#8A508B #8B6C50 #518B50 #506E8B
square
#8A508B #8B6C50 #518B50 #506E8B
split-complementary
#8A508B #6E8B50 #508B6C
monochromatic
#3D233D #633A64 #8A508B #AA6DAB #C194C1

Accessibility & contrast

On white

5.83
#8A508B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#8A508B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A508B
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A508B#FFFFFF#000000##FFFFFF
##8A508B1.005.833.605.83
#FFFFFF5.831.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.831.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a508b;
/* rgb */ color: rgb(138, 80, 139);
/* oklch */ color: oklch(52.0% 0.112 326.4);
Tailwind
colors: {
  custom: {
    50: '#ad83ad',
    500: '#8a508b',
    950: '#000000',
  },
}
SCSS
$custom: #8a508b;
$custom-light: #ad83ad;
$custom-dark: #000000;
JSON
{
  "hex": "#8a508b",
  "rgb": {
    "r": 138,
    "g": 80,
    "b": 139
  },
  "hsl": {
    "h": 298.983,
    "s": 26.941,
    "l": 42.941
  },
  "oklch": {
    "l": 0.52041,
    "c": 0.11229,
    "h": 326.4
  },
  "luminance": 0.13005
}

Semantic roles & 50–950 ramp

primary
#8A508B
secondary
#89AE89
accent
#C36566
background
#FAF8FA
surface
#F4EFF4
border
#CECACE
text
#100B10
muted
#7F7C7F

Preview Lab

Preview with #8A508B

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

Preview Lab → · Contrast checker → · Palette generator →

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