#8A2EAE#8A2EAE

#8A2EAE is a mid, vivid purple. Relative luminance 0.104; OKLCH L 49.6% C 0.199 H 314.5°. Best body text is #FFFFFF at 6.81:1 contrast (WCAG AA passes).

Color values

HEX#8A2EAE
RGBrgb(138, 46, 174)
HSLhsl(283, 58%, 43%)
HSVhsv(283, 74%, 68%)
CMYKcmyk(20.7%, 73.6%, 0%, 31.8%)
CIE-LABlab(38.58, 57.61, -50.38)
CIE-LCHlch(38.58, 76.53, 318.83°)
OKLaboklab(49.6% 0.1397 -0.1421)
OKLCHoklch(49.6% 0.199 314.5)
XYZxyz(19.0969, 10.4139, 41.0403)
Luminance0.1041 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2EAE #52AE2E
analogous
#4A2EAE #8A2EAE #AE2E92
triadic
#8A2EAE #AE8A2E #2EAE8A
tetradic
#8A2EAE #AE4A2E #52AE2E #2E92AE
square
#8A2EAE #AE4A2E #52AE2E #2E92AE
split-complementary
#8A2EAE #92AE2E #2EAE4A
monochromatic
#3D144D #64217E #8A2EAE #AA4ACF #C17ADC

Accessibility & contrast

On white

6.81
#8A2EAE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#8A2EAE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A2EAE
6.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2EAE#FFFFFF#000000##FFFFFF
##8A2EAE1.006.813.086.81
#FFFFFF6.811.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B2
Deuteranopia (green-blind)
#275DAB
Tritanopia (blue-blind)
#874A6C
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8a2eae;
/* rgb */ color: rgb(138, 46, 174);
/* oklch */ color: oklch(49.6% 0.199 314.5);
Tailwind
colors: {
  custom: {
    50: '#b070c7',
    500: '#8a2eae',
    950: '#000000',
  },
}
SCSS
$custom: #8a2eae;
$custom-light: #b070c7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2eae",
  "rgb": {
    "r": 138,
    "g": 46,
    "b": 174
  },
  "hsl": {
    "h": 283.125,
    "s": 58.182,
    "l": 43.137
  },
  "oklch": {
    "l": 0.49603,
    "c": 0.19923,
    "h": 314.5
  },
  "luminance": 0.10413
}

Semantic roles & 50–950 ramp

primary
#8A2EAE
secondary
#8AC474
accent
#E14672
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8A2EAE

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

Preview Lab → · Contrast checker → · Palette generator →

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