#8A2DA2#8A2DA2

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

Color values

HEX#8A2DA2
RGBrgb(138, 45, 162)
HSLhsl(288, 57%, 41%)
HSVhsv(288, 72%, 64%)
CMYKcmyk(14.8%, 72.2%, 0%, 36.5%)
CIE-LABlab(37.64, 55.59, -44.70)
CIE-LCHlch(37.64, 71.33, 321.20°)
OKLaboklab(48.69% 0.1419 -0.1254)
OKLCHoklch(48.69% 0.189 318.5)
XYZxyz(17.9403, 9.8895, 35.1393)
Luminance0.0989 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2DA2 #45A22D
analogous
#4F2DA2 #8A2DA2 #A22D7F
triadic
#8A2DA2 #A28A2D #2DA28A
tetradic
#8A2DA2 #A24F2D #45A22D #2D7FA2
square
#8A2DA2 #A24F2D #45A22D #2D7FA2
split-complementary
#8A2DA2 #7FA22D #2DA24F
monochromatic
#381242 #612072 #8A2DA2 #AE42CA #C372D8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A2DA2#FFFFFF#000000##FFFFFF
##8A2DA21.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)
#0053A5
Deuteranopia (green-blind)
#335C9F
Tritanopia (blue-blind)
#8A4465
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8a2da2;
/* rgb */ color: rgb(138, 45, 162);
/* oklch */ color: oklch(48.7% 0.189 318.5);
Tailwind
colors: {
  custom: {
    50: '#b06fbe',
    500: '#8a2da2',
    950: '#000000',
  },
}
SCSS
$custom: #8a2da2;
$custom-light: #b06fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2da2",
  "rgb": {
    "r": 138,
    "g": 45,
    "b": 162
  },
  "hsl": {
    "h": 287.692,
    "s": 56.522,
    "l": 40.588
  },
  "oklch": {
    "l": 0.48687,
    "c": 0.1894,
    "h": 318.5
  },
  "luminance": 0.09889
}

Semantic roles & 50–950 ramp

primary
#8A2DA2
secondary
#7DBF6C
accent
#E04867
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8A2DA2

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

Preview Lab → · Contrast checker → · Palette generator →

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