#8A2EA1#8A2EA1

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

Color values

HEX#8A2EA1
RGBrgb(138, 46, 161)
HSLhsl(288, 56%, 41%)
HSVhsv(288, 71%, 63%)
CMYKcmyk(14.3%, 71.4%, 0%, 36.9%)
CIE-LABlab(37.72, 55.00, -43.97)
CIE-LCHlch(37.72, 70.42, 321.36°)
OKLaboklab(48.72% 0.141 -0.1233)
OKLCHoklch(48.72% 0.187 318.8)
XYZxyz(17.8904, 9.9313, 34.6859)
Luminance0.0993 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2EA1 #45A12E
analogous
#502EA1 #8A2EA1 #A12E7E
triadic
#8A2EA1 #A18A2E #2EA18A
tetradic
#8A2EA1 #A1502E #45A12E #2E7EA1
square
#8A2EA1 #A1502E #45A12E #2E7EA1
split-complementary
#8A2EA1 #7EA12E #2EA150
monochromatic
#381342 #612071 #8A2EA1 #AE43C9 #C373D7

Accessibility & contrast

On white

7.03
#8A2EA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#8A2EA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2EA1
7.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2EA1#FFFFFF#000000##FFFFFF
##8A2EA11.007.032.997.03
#FFFFFF7.031.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053A4
Deuteranopia (green-blind)
#355C9E
Tritanopia (blue-blind)
#8A4464
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8a2ea1;
/* rgb */ color: rgb(138, 46, 161);
/* oklch */ color: oklch(48.7% 0.187 318.8);
Tailwind
colors: {
  custom: {
    50: '#b06fbd',
    500: '#8a2ea1',
    950: '#000000',
  },
}
SCSS
$custom: #8a2ea1;
$custom-light: #b06fbd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2ea1",
  "rgb": {
    "r": 138,
    "g": 46,
    "b": 161
  },
  "hsl": {
    "h": 288,
    "s": 55.556,
    "l": 40.588
  },
  "oklch": {
    "l": 0.4872,
    "c": 0.18729,
    "h": 318.8
  },
  "luminance": 0.0993
}

Semantic roles & 50–950 ramp

primary
#8A2EA1
secondary
#7DBE6C
accent
#DF4967
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8A2EA1

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

Preview Lab → · Contrast checker → · Palette generator →

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