#8A28AA#8A28AA

#8A28AA is a mid, highly saturated purple. Relative luminance 0.098; OKLCH L 48.8% C 0.202 H 316.2°. Best body text is #FFFFFF at 7.08:1 contrast (WCAG AA passes).

Color values

HEX#8A28AA
RGBrgb(138, 40, 170)
HSLhsl(285, 62%, 41%)
HSVhsv(285, 76%, 67%)
CMYKcmyk(18.8%, 76.5%, 0%, 33.3%)
CIE-LABlab(37.52, 59.03, -49.68)
CIE-LCHlch(37.52, 77.16, 319.91°)
OKLaboklab(48.77% 0.1458 -0.14)
OKLCHoklch(48.77% 0.202 316.2)
XYZxyz(18.4946, 9.8239, 38.9444)
Luminance0.0982 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A28AA #48AA28
analogous
#4928AA #8A28AA #AA2889
triadic
#8A28AA #AA8A28 #28AA8A
tetradic
#8A28AA #AA4928 #48AA28 #2889AA
square
#8A28AA #AA4928 #48AA28 #2889AA
split-complementary
#8A28AA #89AA28 #28AA49
monochromatic
#3A1147 #621C78 #8A28AA #AD3ED2 #C26FDD

Accessibility & contrast

On white

7.08
#8A28AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#8A28AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A28AA
7.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A28AA#FFFFFF#000000##FFFFFF
##8A28AA1.007.082.967.08
#FFFFFF7.081.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AE
Deuteranopia (green-blind)
#275BA7
Tritanopia (blue-blind)
#884568
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #8a28aa;
/* rgb */ color: rgb(138, 40, 170);
/* oklch */ color: oklch(48.8% 0.202 316.2);
Tailwind
colors: {
  custom: {
    50: '#b06dc4',
    500: '#8a28aa',
    950: '#000000',
  },
}
SCSS
$custom: #8a28aa;
$custom-light: #b06dc4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a28aa",
  "rgb": {
    "r": 138,
    "g": 40,
    "b": 170
  },
  "hsl": {
    "h": 285.231,
    "s": 61.905,
    "l": 41.176
  },
  "oklch": {
    "l": 0.48772,
    "c": 0.20216,
    "h": 316.2
  },
  "luminance": 0.09823
}

Semantic roles & 50–950 ramp

primary
#8A28AA
secondary
#80C46A
accent
#E5436B
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8A28AA

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

Preview Lab → · Contrast checker → · Palette generator →

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