#8A518D#8A518D

#8A518D is a mid, moderate purple. Relative luminance 0.132; OKLCH L 52.3% C 0.113 H 325.2°. Best body text is #FFFFFF at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#8A518D
RGBrgb(138, 81, 141)
HSLhsl(297, 27%, 44%)
HSVhsv(297, 43%, 55%)
CMYKcmyk(2.1%, 42.6%, 0%, 44.7%)
CIE-LABlab(43.08, 33.70, -23.45)
CIE-LCHlch(43.08, 41.05, 325.16°)
OKLaboklab(52.3% 0.0925 -0.0642)
OKLCHoklch(52.3% 0.113 325.2)
XYZxyz(18.2310, 13.2120, 26.7840)
Luminance0.1321 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A518D #548D51
analogous
#6C518D #8A518D #8D5172
triadic
#8A518D #8D8A51 #518D8A
tetradic
#8A518D #8D6C51 #548D51 #51728D
square
#8A518D #8D6C51 #548D51 #51728D
split-complementary
#8A518D #728D51 #518D6C
monochromatic
#3E243F #643B66 #8A518D #A96FAC #C096C3

Accessibility & contrast

On white

5.77
#8A518D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#8A518D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A518D
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A518D#FFFFFF#000000##FFFFFF
##8A518D1.005.773.645.77
#FFFFFF5.771.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B618F
Deuteranopia (green-blind)
#5B688B
Tritanopia (blue-blind)
#8D5768
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #8a518d;
/* rgb */ color: rgb(138, 81, 141);
/* oklch */ color: oklch(52.3% 0.113 325.2);
Tailwind
colors: {
  custom: {
    50: '#ad83ae',
    500: '#8a518d',
    950: '#000000',
  },
}
SCSS
$custom: #8a518d;
$custom-light: #ad83ae;
$custom-dark: #000000;
JSON
{
  "hex": "#8a518d",
  "rgb": {
    "r": 138,
    "g": 81,
    "b": 141
  },
  "hsl": {
    "h": 297,
    "s": 27.027,
    "l": 43.529
  },
  "oklch": {
    "l": 0.52301,
    "c": 0.11253,
    "h": 325.2
  },
  "luminance": 0.13211
}

Semantic roles & 50–950 ramp

primary
#8A518D
secondary
#8CAF8A
accent
#C36469
background
#FAF8FA
surface
#F4EFF4
border
#CECACE
text
#100B10
muted
#7F7C7F

Preview Lab

Preview with #8A518D

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

Preview Lab → · Contrast checker → · Palette generator →

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