#8A2E9A#8A2E9A

#8A2E9A is a mid, vivid purple. Relative luminance 0.097; OKLCH L 48.3% C 0.181 H 321.4°. Best body text is #FFFFFF at 7.15:1 contrast (WCAG AA passes).

Color values

HEX#8A2E9A
RGBrgb(138, 46, 154)
HSLhsl(291, 54%, 39%)
HSVhsv(291, 70%, 60%)
CMYKcmyk(10.4%, 70.1%, 0%, 39.6%)
CIE-LABlab(37.28, 53.64, -40.44)
CIE-LCHlch(37.28, 67.18, 322.98°)
OKLaboklab(48.27% 0.1413 -0.113)
OKLCHoklch(48.27% 0.181 321.4)
XYZxyz(17.2903, 9.6913, 31.5254)
Luminance0.0969 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2E9A #3E9A2E
analogous
#542E9A #8A2E9A #9A2E74
triadic
#8A2E9A #9A8A2E #2E9A8A
tetradic
#8A2E9A #9A542E #3E9A2E #2E749A
square
#8A2E9A #9A542E #3E9A2E #2E749A
split-complementary
#8A2E9A #749A2E #2E9A54
monochromatic
#36123C #60206B #8A2E9A #B23FC6 #C56FD4

Accessibility & contrast

On white

7.15
#8A2E9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#8A2E9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2E9A
7.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2E9A#FFFFFF#000000##FFFFFF
##8A2E9A1.007.152.947.15
#FFFFFF7.151.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#04519D
Deuteranopia (green-blind)
#3B5B97
Tritanopia (blue-blind)
#8B4161
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #8a2e9a;
/* rgb */ color: rgb(138, 46, 154);
/* oklch */ color: oklch(48.3% 0.181 321.4);
Tailwind
colors: {
  custom: {
    50: '#af6fb8',
    500: '#8a2e9a',
    950: '#000000',
  },
}
SCSS
$custom: #8a2e9a;
$custom-light: #af6fb8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2e9a",
  "rgb": {
    "r": 138,
    "g": 46,
    "b": 154
  },
  "hsl": {
    "h": 291.111,
    "s": 54,
    "l": 39.216
  },
  "oklch": {
    "l": 0.48268,
    "c": 0.18095,
    "h": 321.4
  },
  "luminance": 0.0969
}

Semantic roles & 50–950 ramp

primary
#8A2E9A
secondary
#75BB69
accent
#DD4A60
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110811
muted
#807B80

Preview Lab

Preview with #8A2E9A

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

Preview Lab → · Contrast checker → · Palette generator →

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