#8A2AAD#8A2AAD

#8A2AAD is a mid, highly saturated purple. Relative luminance 0.101; OKLCH L 49.2% C 0.203 H 315.1°. Best body text is #FFFFFF at 6.96:1 contrast (WCAG AA passes).

Color values

HEX#8A2AAD
RGBrgb(138, 42, 173)
HSLhsl(284, 61%, 42%)
HSVhsv(284, 76%, 68%)
CMYKcmyk(20.2%, 75.7%, 0%, 32.2%)
CIE-LABlab(37.98, 58.91, -50.74)
CIE-LCHlch(37.98, 77.75, 319.26°)
OKLaboklab(49.16% 0.1436 -0.1431)
OKLCHoklch(49.16% 0.203 315.1)
XYZxyz(18.8508, 10.0770, 40.4791)
Luminance0.1008 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2AAD #4DAD2A
analogous
#482AAD #8A2AAD #AD2A8F
triadic
#8A2AAD #AD8A2A #2AAD8A
tetradic
#8A2AAD #AD482A #4DAD2A #2A8FAD
square
#8A2AAD #AD482A #4DAD2A #2A8FAD
split-complementary
#8A2AAD #8FAD2A #2AAD48
monochromatic
#3B124B #631E7C #8A2AAD #AB43D1 #C174DD

Accessibility & contrast

On white

6.96
#8A2AAD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8A2AAD
6.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2AAD#FFFFFF#000000##FFFFFF
##8A2AAD1.006.963.026.96
#FFFFFF6.961.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B1
Deuteranopia (green-blind)
#245CAA
Tritanopia (blue-blind)
#87476A
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8a2aad;
/* rgb */ color: rgb(138, 42, 173);
/* oklch */ color: oklch(49.2% 0.203 315.1);
Tailwind
colors: {
  custom: {
    50: '#b06ec6',
    500: '#8a2aad',
    950: '#000000',
  },
}
SCSS
$custom: #8a2aad;
$custom-light: #b06ec6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2aad",
  "rgb": {
    "r": 138,
    "g": 42,
    "b": 173
  },
  "hsl": {
    "h": 283.969,
    "s": 60.93,
    "l": 42.157
  },
  "oklch": {
    "l": 0.4916,
    "c": 0.20273,
    "h": 315.1
  },
  "luminance": 0.10076
}

Semantic roles & 50–950 ramp

primary
#8A2AAD
secondary
#85C56E
accent
#E4446F
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8A2AAD

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

Preview Lab → · Contrast checker → · Palette generator →

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