#8A48AA#8A48AA

#8A48AA is a mid, vivid purple. Relative luminance 0.129; OKLCH L 52.5% C 0.160 H 313.3°. Best body text is #FFFFFF at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#8A48AA
RGBrgb(138, 72, 170)
HSLhsl(280, 40%, 47%)
HSVhsv(280, 58%, 67%)
CMYKcmyk(18.8%, 57.6%, 0%, 33.3%)
CIE-LABlab(42.67, 44.75, -41.43)
CIE-LCHlch(42.67, 60.99, 317.20°)
OKLaboklab(52.48% 0.1094 -0.1161)
OKLCHoklch(52.48% 0.16 313.3)
XYZxyz(20.0531, 12.9408, 39.4639)
Luminance0.1294 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A48AA #68AA48
analogous
#5948AA #8A48AA #AA4899
triadic
#8A48AA #AA8A48 #48AA8A
tetradic
#8A48AA #AA5948 #68AA48 #4899AA
square
#8A48AA #AA5948 #68AA48 #4899AA
split-complementary
#8A48AA #99AA48 #48AA59
monochromatic
#442454 #67367F #8A48AA #A66EC1 #C099D4

Accessibility & contrast

On white

5.85
#8A48AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#8A48AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A48AA
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A48AA#FFFFFF#000000##FFFFFF
##8A48AA1.005.853.595.85
#FFFFFF5.851.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B61AD
Deuteranopia (green-blind)
#4466A8
Tritanopia (blue-blind)
#875972
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8a48aa;
/* rgb */ color: rgb(138, 72, 170);
/* oklch */ color: oklch(52.5% 0.160 313.3);
Tailwind
colors: {
  custom: {
    50: '#af7ec4',
    500: '#8a48aa',
    950: '#000000',
  },
}
SCSS
$custom: #8a48aa;
$custom-light: #af7ec4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a48aa",
  "rgb": {
    "r": 138,
    "g": 72,
    "b": 170
  },
  "hsl": {
    "h": 280.408,
    "s": 40.496,
    "l": 47.451
  },
  "oklch": {
    "l": 0.52479,
    "c": 0.15951,
    "h": 313.3
  },
  "luminance": 0.1294
}

Semantic roles & 50–950 ramp

primary
#8A48AA
secondary
#9EC08E
accent
#D0577F
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110A13
muted
#807C82

Preview Lab

Preview with #8A48AA

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

Preview Lab → · Contrast checker → · Palette generator →

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