#8A2AAA#8A2AAA

#8A2AAA is a mid, highly saturated purple. Relative luminance 0.100; OKLCH L 48.9% C 0.200 H 316.0°. Best body text is #FFFFFF at 7.02:1 contrast (WCAG AA passes).

Color values

HEX#8A2AAA
RGBrgb(138, 42, 170)
HSLhsl(285, 60%, 42%)
HSVhsv(285, 75%, 67%)
CMYKcmyk(18.8%, 75.3%, 0%, 33.3%)
CIE-LABlab(37.77, 58.31, -49.28)
CIE-LCHlch(37.77, 76.35, 319.80°)
OKLaboklab(48.95% 0.144 -0.1388)
OKLCHoklch(48.95% 0.2 316)
XYZxyz(18.5638, 9.9622, 38.9675)
Luminance0.0996 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2AAA #4AAA2A
analogous
#4A2AAA #8A2AAA #AA2A8A
triadic
#8A2AAA #AA8A2A #2AAA8A
tetradic
#8A2AAA #AA4A2A #4AAA2A #2A8AAA
square
#8A2AAA #AA4A2A #4AAA2A #2A8AAA
split-complementary
#8A2AAA #8AAA2A #2AAA4A
monochromatic
#3A1248 #621E79 #8A2AAA #AC41D0 #C272DC

Accessibility & contrast

On white

7.02
#8A2AAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#8A2AAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2AAA
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2AAA#FFFFFF#000000##FFFFFF
##8A2AAA1.007.022.997.02
#FFFFFF7.021.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AE
Deuteranopia (green-blind)
#285BA7
Tritanopia (blue-blind)
#884668
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8a2aaa;
/* rgb */ color: rgb(138, 42, 170);
/* oklch */ color: oklch(48.9% 0.200 316.0);
Tailwind
colors: {
  custom: {
    50: '#b06ec4',
    500: '#8a2aaa',
    950: '#000000',
  },
}
SCSS
$custom: #8a2aaa;
$custom-light: #b06ec4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2aaa",
  "rgb": {
    "r": 138,
    "g": 42,
    "b": 170
  },
  "hsl": {
    "h": 285,
    "s": 60.377,
    "l": 41.569
  },
  "oklch": {
    "l": 0.48949,
    "c": 0.20003,
    "h": 316
  },
  "luminance": 0.09961
}

Semantic roles & 50–950 ramp

primary
#8A2AAA
secondary
#82C36C
accent
#E4446C
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8A2AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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