#8A2DAA#8A2DAA

#8A2DAA is a mid, vivid purple. Relative luminance 0.102; OKLCH L 49.2% C 0.197 H 315.9°. Best body text is #FFFFFF at 6.92:1 contrast (WCAG AA passes).

Color values

HEX#8A2DAA
RGBrgb(138, 45, 170)
HSLhsl(285, 58%, 42%)
HSVhsv(285, 74%, 67%)
CMYKcmyk(18.8%, 73.5%, 0%, 33.3%)
CIE-LABlab(38.17, 57.19, -48.65)
CIE-LCHlch(38.17, 75.08, 319.61°)
OKLaboklab(49.23% 0.1411 -0.137)
OKLCHoklch(49.23% 0.197 315.9)
XYZxyz(18.6742, 10.1830, 39.0043)
Luminance0.1018 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2DAA #4DAA2D
analogous
#4B2DAA #8A2DAA #AA2D8C
triadic
#8A2DAA #AA8A2D #2DAA8A
tetradic
#8A2DAA #AA4B2D #4DAA2D #2D8CAA
square
#8A2DAA #AA4B2D #4DAA2D #2D8CAA
split-complementary
#8A2DAA #8CAA2D #2DAA4B
monochromatic
#3B1349 #63207A #8A2DAA #AB46CE #C177DB

Accessibility & contrast

On white

6.92
#8A2DAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#8A2DAA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A2DAA
6.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2DAA#FFFFFF#000000##FFFFFF
##8A2DAA1.006.923.046.92
#FFFFFF6.921.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.921.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a2daa;
/* rgb */ color: rgb(138, 45, 170);
/* oklch */ color: oklch(49.2% 0.197 315.9);
Tailwind
colors: {
  custom: {
    50: '#b06fc4',
    500: '#8a2daa',
    950: '#000000',
  },
}
SCSS
$custom: #8a2daa;
$custom-light: #b06fc4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2daa",
  "rgb": {
    "r": 138,
    "g": 45,
    "b": 170
  },
  "hsl": {
    "h": 284.64,
    "s": 58.14,
    "l": 42.157
  },
  "oklch": {
    "l": 0.49229,
    "c": 0.19669,
    "h": 315.9
  },
  "luminance": 0.10182
}

Semantic roles & 50–950 ramp

primary
#8A2DAA
secondary
#85C370
accent
#E1466E
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8A2DAA

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

Preview Lab → · Contrast checker → · Palette generator →

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