#8A2AA5#8A2AA5

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

Color values

HEX#8A2AA5
RGBrgb(138, 42, 165)
HSLhsl(287, 59%, 41%)
HSVhsv(287, 75%, 65%)
CMYKcmyk(16.4%, 74.5%, 0%, 35.3%)
CIE-LABlab(37.44, 57.32, -46.83)
CIE-LCHlch(37.44, 74.02, 320.75°)
OKLaboklab(48.6% 0.1446 -0.1316)
OKLCHoklch(48.6% 0.196 317.7)
XYZxyz(18.0998, 9.7766, 36.5237)
Luminance0.0978 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2AA5 #45A52A
analogous
#4C2AA5 #8A2AA5 #A52A82
triadic
#8A2AA5 #A58A2A #2AA58A
tetradic
#8A2AA5 #A54C2A #45A52A #2A82A5
square
#8A2AA5 #A54C2A #45A52A #2A82A5
split-complementary
#8A2AA5 #82A52A #2AA54C
monochromatic
#381143 #611E74 #8A2AA5 #AE3ECE #C36FDA

Accessibility & contrast

On white

7.11
#8A2AA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A2AA5
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2AA5#FFFFFF#000000##FFFFFF
##8A2AA51.007.112.967.11
#FFFFFF7.111.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a2aa5;
/* rgb */ color: rgb(138, 42, 165);
/* oklch */ color: oklch(48.6% 0.196 317.7);
Tailwind
colors: {
  custom: {
    50: '#b06ec0',
    500: '#8a2aa5',
    950: '#000000',
  },
}
SCSS
$custom: #8a2aa5;
$custom-light: #b06ec0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2aa5",
  "rgb": {
    "r": 138,
    "g": 42,
    "b": 165
  },
  "hsl": {
    "h": 286.829,
    "s": 59.42,
    "l": 40.588
  },
  "oklch": {
    "l": 0.48604,
    "c": 0.19555,
    "h": 317.7
  },
  "luminance": 0.09776
}

Semantic roles & 50–950 ramp

primary
#8A2AA5
secondary
#7DC169
accent
#E34568
background
#FBF6FB
surface
#F6ECF7
border
#D0C7D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8A2AA5

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

Preview Lab → · Contrast checker → · Palette generator →

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