#8A2AA1#8A2AA1

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

Color values

HEX#8A2AA1
RGBrgb(138, 42, 161)
HSLhsl(288, 59%, 40%)
HSVhsv(288, 74%, 63%)
CMYKcmyk(14.3%, 73.9%, 0%, 36.9%)
CIE-LABlab(37.18, 56.54, -44.84)
CIE-LCHlch(37.18, 72.17, 321.58°)
OKLaboklab(48.33% 0.145 -0.1258)
OKLCHoklch(48.33% 0.192 319)
XYZxyz(17.7414, 9.6333, 34.6362)
Luminance0.0963 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2AA1 #41A12A
analogous
#4E2AA1 #8A2AA1 #A12A7D
triadic
#8A2AA1 #A18A2A #2AA18A
tetradic
#8A2AA1 #A14E2A #41A12A #2A7DA1
square
#8A2AA1 #A14E2A #41A12A #2A7DA1
split-complementary
#8A2AA1 #7DA12A #2AA14E
monochromatic
#371140 #601D70 #8A2AA1 #B03CCC #C46DD9

Accessibility & contrast

On white

7.18
#8A2AA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#8A2AA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2AA1
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2AA1#FFFFFF#000000##FFFFFF
##8A2AA11.007.182.937.18
#FFFFFF7.181.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A4
Deuteranopia (green-blind)
#325B9E
Tritanopia (blue-blind)
#8A4263
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8a2aa1;
/* rgb */ color: rgb(138, 42, 161);
/* oklch */ color: oklch(48.3% 0.192 319.0);
Tailwind
colors: {
  custom: {
    50: '#b06dbd',
    500: '#8a2aa1',
    950: '#000000',
  },
}
SCSS
$custom: #8a2aa1;
$custom-light: #b06dbd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2aa1",
  "rgb": {
    "r": 138,
    "g": 42,
    "b": 161
  },
  "hsl": {
    "h": 288.403,
    "s": 58.621,
    "l": 39.804
  },
  "oklch": {
    "l": 0.48333,
    "c": 0.192,
    "h": 319
  },
  "luminance": 0.09632
}

Semantic roles & 50–950 ramp

primary
#8A2AA1
secondary
#78C067
accent
#E24664
background
#FBF6FB
surface
#F6ECF7
border
#D0C7D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8A2AA1

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

Preview Lab → · Contrast checker → · Palette generator →

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