#8A1EAE#8A1EAE

#8A1EAE is a mid, highly saturated purple. Relative luminance 0.094; OKLCH L 48.3% C 0.215 H 315.4°. Best body text is #FFFFFF at 7.30:1 contrast (WCAG AA passes).

Color values

HEX#8A1EAE
RGBrgb(138, 30, 174)
HSLhsl(285, 71%, 40%)
HSVhsv(285, 83%, 68%)
CMYKcmyk(20.7%, 82.8%, 0%, 31.8%)
CIE-LABlab(36.72, 62.96, -53.37)
CIE-LCHlch(36.72, 82.53, 319.71°)
OKLaboklab(48.3% 0.1531 -0.1508)
OKLCHoklch(48.3% 0.215 315.4)
XYZxyz(18.5842, 9.3885, 40.8694)
Luminance0.0939 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1EAE #42AE1E
analogous
#421EAE #8A1EAE #AE1E8A
triadic
#8A1EAE #AE8A1E #1EAE8A
tetradic
#8A1EAE #AE421E #42AE1E #1E8AAE
square
#8A1EAE #AE421E #42AE1E #1E8AAE
split-complementary
#8A1EAE #8AAE1E #1EAE42
monochromatic
#370C46 #61157A #8A1EAE #B02EDB #C462E4

Accessibility & contrast

On white

7.30
#8A1EAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#8A1EAE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1EAE
7.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1EAE#FFFFFF#000000##FFFFFF
##8A1EAE1.007.302.887.30
#FFFFFF7.301.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B2
Deuteranopia (green-blind)
#1659AB
Tritanopia (blue-blind)
#874268
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8a1eae;
/* rgb */ color: rgb(138, 30, 174);
/* oklch */ color: oklch(48.3% 0.215 315.4);
Tailwind
colors: {
  custom: {
    50: '#b169c7',
    500: '#8a1eae',
    950: '#000000',
  },
}
SCSS
$custom: #8a1eae;
$custom-light: #b169c7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1eae",
  "rgb": {
    "r": 138,
    "g": 30,
    "b": 174
  },
  "hsl": {
    "h": 285,
    "s": 70.588,
    "l": 40
  },
  "oklch": {
    "l": 0.48297,
    "c": 0.21484,
    "h": 315.4
  },
  "luminance": 0.09388
}

Semantic roles & 50–950 ramp

primary
#8A1EAE
secondary
#79C95F
accent
#ED3A67
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110713
muted
#807A82

Preview Lab

Preview with #8A1EAE

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

Preview Lab → · Contrast checker → · Palette generator →

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