#8A2AA8#8A2AA8

#8A2AA8 is a mid, vivid purple. Relative luminance 0.099; OKLCH L 48.8% C 0.198 H 316.7°. Best body text is #FFFFFF at 7.05:1 contrast (WCAG AA passes).

Color values

HEX#8A2AA8
RGBrgb(138, 42, 168)
HSLhsl(286, 60%, 41%)
HSVhsv(286, 75%, 66%)
CMYKcmyk(17.9%, 75%, 0%, 34.1%)
CIE-LABlab(37.64, 57.91, -48.30)
CIE-LCHlch(37.64, 75.41, 320.17°)
OKLaboklab(48.81% 0.1443 -0.136)
OKLCHoklch(48.81% 0.198 316.7)
XYZxyz(18.3760, 9.8871, 37.9786)
Luminance0.0989 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2AA8 #48A82A
analogous
#4B2AA8 #8A2AA8 #A82A87
triadic
#8A2AA8 #A88A2A #2AA88A
tetradic
#8A2AA8 #A84B2A #48A82A #2A87A8
square
#8A2AA8 #A84B2A #48A82A #2A87A8
split-complementary
#8A2AA8 #87A82A #2AA84B
monochromatic
#3A1246 #621E77 #8A2AA8 #AD40CF #C271DB

Accessibility & contrast

On white

7.05
#8A2AA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#8A2AA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2AA8
7.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2AA8#FFFFFF#000000##FFFFFF
##8A2AA81.007.052.987.05
#FFFFFF7.051.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AB
Deuteranopia (green-blind)
#2B5BA5
Tritanopia (blue-blind)
#884567
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8a2aa8;
/* rgb */ color: rgb(138, 42, 168);
/* oklch */ color: oklch(48.8% 0.198 316.7);
Tailwind
colors: {
  custom: {
    50: '#b06ec2',
    500: '#8a2aa8',
    950: '#000000',
  },
}
SCSS
$custom: #8a2aa8;
$custom-light: #b06ec2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2aa8",
  "rgb": {
    "r": 138,
    "g": 42,
    "b": 168
  },
  "hsl": {
    "h": 285.714,
    "s": 60,
    "l": 41.176
  },
  "oklch": {
    "l": 0.4881,
    "c": 0.19824,
    "h": 316.7
  },
  "luminance": 0.09886
}

Semantic roles & 50–950 ramp

primary
#8A2AA8
secondary
#80C36B
accent
#E3456A
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110812
muted
#807B81

Preview Lab

Preview with #8A2AA8

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

Preview Lab → · Contrast checker → · Palette generator →

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