#8A2DA1#8A2DA1

#8A2DA1 is a mid, vivid purple. Relative luminance 0.099; OKLCH L 48.6% C 0.189 H 318.9°. Best body text is #FFFFFF at 7.07:1 contrast (WCAG AA passes).

Color values

HEX#8A2DA1
RGBrgb(138, 45, 161)
HSLhsl(288, 56%, 40%)
HSVhsv(288, 72%, 63%)
CMYKcmyk(14.3%, 72%, 0%, 36.9%)
CIE-LABlab(37.58, 55.40, -44.20)
CIE-LCHlch(37.58, 70.87, 321.42°)
OKLaboklab(48.62% 0.142 -0.124)
OKLCHoklch(48.62% 0.189 318.9)
XYZxyz(17.8518, 9.8541, 34.6730)
Luminance0.0985 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2DA1 #44A12D
analogous
#502DA1 #8A2DA1 #A12D7E
triadic
#8A2DA1 #A18A2D #2DA18A
tetradic
#8A2DA1 #A1502D #44A12D #2D7EA1
square
#8A2DA1 #A1502D #44A12D #2D7EA1
split-complementary
#8A2DA1 #7EA12D #2DA150
monochromatic
#381241 #612071 #8A2DA1 #AF41CA #C371D7

Accessibility & contrast

On white

7.07
#8A2DA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#8A2DA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2DA1
7.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2DA1#FFFFFF#000000##FFFFFF
##8A2DA11.007.072.977.07
#FFFFFF7.071.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A4
Deuteranopia (green-blind)
#345B9E
Tritanopia (blue-blind)
#8A4464
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #8a2da1;
/* rgb */ color: rgb(138, 45, 161);
/* oklch */ color: oklch(48.6% 0.189 318.9);
Tailwind
colors: {
  custom: {
    50: '#b06fbd',
    500: '#8a2da1',
    950: '#000000',
  },
}
SCSS
$custom: #8a2da1;
$custom-light: #b06fbd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2da1",
  "rgb": {
    "r": 138,
    "g": 45,
    "b": 161
  },
  "hsl": {
    "h": 288.103,
    "s": 56.311,
    "l": 40.392
  },
  "oklch": {
    "l": 0.48621,
    "c": 0.1885,
    "h": 318.9
  },
  "luminance": 0.09853
}

Semantic roles & 50–950 ramp

primary
#8A2DA1
secondary
#7CBF6B
accent
#E04866
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8A2DA1

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

Preview Lab → · Contrast checker → · Palette generator →

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