#8A2EAA#8A2EAA

#8A2EAA is a mid, vivid purple. Relative luminance 0.103; OKLCH L 49.3% C 0.196 H 315.8°. Best body text is #FFFFFF at 6.88:1 contrast (WCAG AA passes).

Color values

HEX#8A2EAA
RGBrgb(138, 46, 170)
HSLhsl(285, 57%, 42%)
HSVhsv(285, 73%, 67%)
CMYKcmyk(18.8%, 72.9%, 0%, 33.3%)
CIE-LABlab(38.31, 56.80, -48.43)
CIE-LCHlch(38.31, 74.64, 319.55°)
OKLaboklab(49.33% 0.1401 -0.1364)
OKLCHoklch(49.33% 0.196 315.8)
XYZxyz(18.7128, 10.2603, 39.0171)
Luminance0.1026 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2EAA #4EAA2E
analogous
#4C2EAA #8A2EAA #AA2E8C
triadic
#8A2EAA #AA8A2E #2EAA8A
tetradic
#8A2EAA #AA4C2E #4EAA2E #2E8CAA
square
#8A2EAA #AA4C2E #4EAA2E #2E8CAA
split-complementary
#8A2EAA #8CAA2E #2EAA4C
monochromatic
#3C144A #63217A #8A2EAA #AB48CD #C178DA

Accessibility & contrast

On white

6.88
#8A2EAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#8A2EAA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A2EAA
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2EAA#FFFFFF#000000##FFFFFF
##8A2EAA1.006.883.056.88
#FFFFFF6.881.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055AE
Deuteranopia (green-blind)
#2C5DA7
Tritanopia (blue-blind)
#884869
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8a2eaa;
/* rgb */ color: rgb(138, 46, 170);
/* oklch */ color: oklch(49.3% 0.196 315.8);
Tailwind
colors: {
  custom: {
    50: '#b070c4',
    500: '#8a2eaa',
    950: '#000000',
  },
}
SCSS
$custom: #8a2eaa;
$custom-light: #b070c4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2eaa",
  "rgb": {
    "r": 138,
    "g": 46,
    "b": 170
  },
  "hsl": {
    "h": 284.516,
    "s": 57.407,
    "l": 42.353
  },
  "oklch": {
    "l": 0.49326,
    "c": 0.19554,
    "h": 315.8
  },
  "luminance": 0.1026
}

Semantic roles & 50–950 ramp

primary
#8A2EAA
secondary
#86C371
accent
#E1476F
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8A2EAA

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

Preview Lab → · Contrast checker → · Palette generator →

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