#8A2AA6#8A2AA6

#8A2AA6 is a mid, vivid purple. Relative luminance 0.098; OKLCH L 48.7% C 0.196 H 317.3°. Best body text is #FFFFFF at 7.09:1 contrast (WCAG AA passes).

Color values

HEX#8A2AA6
RGBrgb(138, 42, 166)
HSLhsl(286, 60%, 41%)
HSVhsv(286, 75%, 65%)
CMYKcmyk(16.9%, 74.7%, 0%, 34.9%)
CIE-LABlab(37.51, 57.52, -47.32)
CIE-LCHlch(37.51, 74.48, 320.56°)
OKLaboklab(48.67% 0.1445 -0.1331)
OKLCHoklch(48.67% 0.196 317.3)
XYZxyz(18.1911, 9.8132, 37.0049)
Luminance0.0981 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2AA6 #46A62A
analogous
#4C2AA6 #8A2AA6 #A62A84
triadic
#8A2AA6 #A68A2A #2AA68A
tetradic
#8A2AA6 #A64C2A #46A62A #2A84A6
square
#8A2AA6 #A64C2A #46A62A #2A84A6
split-complementary
#8A2AA6 #84A62A #2AA64C
monochromatic
#391144 #611E75 #8A2AA6 #AE3FCE #C370DB

Accessibility & contrast

On white

7.09
#8A2AA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#8A2AA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2AA6
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2AA6#FFFFFF#000000##FFFFFF
##8A2AA61.007.092.967.09
#FFFFFF7.091.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A9
Deuteranopia (green-blind)
#2D5BA3
Tritanopia (blue-blind)
#894466
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #8a2aa6;
/* rgb */ color: rgb(138, 42, 166);
/* oklch */ color: oklch(48.7% 0.196 317.3);
Tailwind
colors: {
  custom: {
    50: '#b06ec1',
    500: '#8a2aa6',
    950: '#000000',
  },
}
SCSS
$custom: #8a2aa6;
$custom-light: #b06ec1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2aa6",
  "rgb": {
    "r": 138,
    "g": 42,
    "b": 166
  },
  "hsl": {
    "h": 286.452,
    "s": 59.615,
    "l": 40.784
  },
  "oklch": {
    "l": 0.48672,
    "c": 0.19645,
    "h": 317.3
  },
  "luminance": 0.09812
}

Semantic roles & 50–950 ramp

primary
#8A2AA6
secondary
#7EC26A
accent
#E34569
background
#FBF6FB
surface
#F6ECF7
border
#D0C7D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8A2AA6

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

Preview Lab → · Contrast checker → · Palette generator →

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