#8A2AA4#8A2AA4

#8A2AA4 is a mid, vivid purple. Relative luminance 0.097; OKLCH L 48.5% C 0.195 H 318.0°. Best body text is #FFFFFF at 7.12:1 contrast (WCAG AA passes).

Color values

HEX#8A2AA4
RGBrgb(138, 42, 164)
HSLhsl(287, 59%, 40%)
HSVhsv(287, 74%, 64%)
CMYKcmyk(15.9%, 74.4%, 0%, 35.7%)
CIE-LABlab(37.37, 57.13, -46.33)
CIE-LCHlch(37.37, 73.55, 320.96°)
OKLaboklab(48.54% 0.1447 -0.1302)
OKLCHoklch(48.54% 0.195 318)
XYZxyz(18.0091, 9.7404, 36.0462)
Luminance0.0974 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2AA4 #44A42A
analogous
#4D2AA4 #8A2AA4 #A42A81
triadic
#8A2AA4 #A48A2A #2AA48A
tetradic
#8A2AA4 #A44D2A #44A42A #2A81A4
square
#8A2AA4 #A44D2A #44A42A #2A81A4
split-complementary
#8A2AA4 #81A42A #2AA44D
monochromatic
#381143 #611E73 #8A2AA4 #AF3ECD #C36EDA

Accessibility & contrast

On white

7.12
#8A2AA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#8A2AA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2AA4
7.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2AA4#FFFFFF#000000##FFFFFF
##8A2AA41.007.122.957.12
#FFFFFF7.121.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A7
Deuteranopia (green-blind)
#2F5BA1
Tritanopia (blue-blind)
#894365
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #8a2aa4;
/* rgb */ color: rgb(138, 42, 164);
/* oklch */ color: oklch(48.5% 0.195 318.0);
Tailwind
colors: {
  custom: {
    50: '#b06ec0',
    500: '#8a2aa4',
    950: '#000000',
  },
}
SCSS
$custom: #8a2aa4;
$custom-light: #b06ec0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2aa4",
  "rgb": {
    "r": 138,
    "g": 42,
    "b": 164
  },
  "hsl": {
    "h": 287.213,
    "s": 59.223,
    "l": 40.392
  },
  "oklch": {
    "l": 0.48536,
    "c": 0.19466,
    "h": 318
  },
  "luminance": 0.0974
}

Semantic roles & 50–950 ramp

primary
#8A2AA4
secondary
#7CC169
accent
#E24567
background
#FBF6FB
surface
#F6ECF7
border
#D0C7D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8A2AA4

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

Preview Lab → · Contrast checker → · Palette generator →

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