#8A2CAA#8A2CAA

#8A2CAA is a mid, vivid purple. Relative luminance 0.101; OKLCH L 49.1% C 0.198 H 315.9°. Best body text is #FFFFFF at 6.95:1 contrast (WCAG AA passes).

Color values

HEX#8A2CAA
RGBrgb(138, 44, 170)
HSLhsl(285, 59%, 42%)
HSVhsv(285, 74%, 67%)
CMYKcmyk(18.8%, 74.1%, 0%, 33.3%)
CIE-LABlab(38.03, 57.57, -48.86)
CIE-LCHlch(38.03, 75.51, 319.68°)
OKLaboklab(49.13% 0.1421 -0.1376)
OKLCHoklch(49.13% 0.198 315.9)
XYZxyz(18.6365, 10.1076, 38.9917)
Luminance0.1011 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2CAA #4CAA2C
analogous
#4B2CAA #8A2CAA #AA2C8B
triadic
#8A2CAA #AA8A2C #2CAA8A
tetradic
#8A2CAA #AA4B2C #4CAA2C #2C8BAA
square
#8A2CAA #AA4B2C #4CAA2C #2C8BAA
split-complementary
#8A2CAA #8BAA2C #2CAA4B
monochromatic
#3B1349 #631F79 #8A2CAA #AC44CF #C175DB

Accessibility & contrast

On white

6.95
#8A2CAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#8A2CAA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A2CAA
6.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2CAA#FFFFFF#000000##FFFFFF
##8A2CAA1.006.953.026.95
#FFFFFF6.951.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054AE
Deuteranopia (green-blind)
#2A5CA7
Tritanopia (blue-blind)
#884769
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8a2caa;
/* rgb */ color: rgb(138, 44, 170);
/* oklch */ color: oklch(49.1% 0.198 315.9);
Tailwind
colors: {
  custom: {
    50: '#b06fc4',
    500: '#8a2caa',
    950: '#000000',
  },
}
SCSS
$custom: #8a2caa;
$custom-light: #b06fc4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2caa",
  "rgb": {
    "r": 138,
    "g": 44,
    "b": 170
  },
  "hsl": {
    "h": 284.762,
    "s": 58.879,
    "l": 41.961
  },
  "oklch": {
    "l": 0.49134,
    "c": 0.19782,
    "h": 315.9
  },
  "luminance": 0.10107
}

Semantic roles & 50–950 ramp

primary
#8A2CAA
secondary
#84C36F
accent
#E2466D
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8A2CAA

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

Preview Lab → · Contrast checker → · Palette generator →

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