#8A2AA0#8A2AA0

#8A2AA0 is a mid, vivid purple. Relative luminance 0.096; OKLCH L 48.3% C 0.191 H 319.4°. Best body text is #FFFFFF at 7.19:1 contrast (WCAG AA passes).

Color values

HEX#8A2AA0
RGBrgb(138, 42, 160)
HSLhsl(289, 58%, 40%)
HSVhsv(289, 74%, 63%)
CMYKcmyk(13.8%, 73.8%, 0%, 37.3%)
CIE-LABlab(37.11, 56.35, -44.35)
CIE-LCHlch(37.11, 71.71, 321.80°)
OKLaboklab(48.27% 0.1451 -0.1244)
OKLCHoklch(48.27% 0.191 319.4)
XYZxyz(17.6535, 9.5981, 34.1736)
Luminance0.0960 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2AA0 #40A02A
analogous
#4F2AA0 #8A2AA0 #A02A7B
triadic
#8A2AA0 #A08A2A #2AA08A
tetradic
#8A2AA0 #A04F2A #40A02A #2A7BA0
square
#8A2AA0 #A04F2A #40A02A #2A7BA0
split-complementary
#8A2AA0 #7BA02A #2AA04F
monochromatic
#36113F #601D70 #8A2AA0 #B13CCC #C46CD8

Accessibility & contrast

On white

7.19
#8A2AA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#8A2AA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2AA0
7.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2AA0#FFFFFF#000000##FFFFFF
##8A2AA01.007.192.927.19
#FFFFFF7.191.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A3
Deuteranopia (green-blind)
#335A9D
Tritanopia (blue-blind)
#8A4163
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8a2aa0;
/* rgb */ color: rgb(138, 42, 160);
/* oklch */ color: oklch(48.3% 0.191 319.4);
Tailwind
colors: {
  custom: {
    50: '#b06dbd',
    500: '#8a2aa0',
    950: '#000000',
  },
}
SCSS
$custom: #8a2aa0;
$custom-light: #b06dbd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2aa0",
  "rgb": {
    "r": 138,
    "g": 42,
    "b": 160
  },
  "hsl": {
    "h": 288.814,
    "s": 58.416,
    "l": 39.608
  },
  "oklch": {
    "l": 0.48267,
    "c": 0.19111,
    "h": 319.4
  },
  "luminance": 0.09597
}

Semantic roles & 50–950 ramp

primary
#8A2AA0
secondary
#77BF67
accent
#E24663
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8A2AA0

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

Preview Lab → · Contrast checker → · Palette generator →

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