#8A1EA8#8A1EA8

#8A1EA8 is a mid, highly saturated purple. Relative luminance 0.092; OKLCH L 47.9% C 0.210 H 317.3°. Best body text is #FFFFFF at 7.42:1 contrast (WCAG AA passes).

Color values

HEX#8A1EA8
RGBrgb(138, 30, 168)
HSLhsl(287, 70%, 39%)
HSVhsv(287, 82%, 66%)
CMYKcmyk(17.9%, 82.1%, 0%, 34.1%)
CIE-LABlab(36.29, 61.81, -50.48)
CIE-LCHlch(36.29, 79.80, 320.76°)
OKLaboklab(47.86% 0.1542 -0.1423)
OKLCHoklch(47.86% 0.21 317.3)
XYZxyz(18.0123, 9.1598, 37.8574)
Luminance0.0916 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1EA8 #3CA81E
analogous
#451EA8 #8A1EA8 #A81E81
triadic
#8A1EA8 #A88A1E #1EA88A
tetradic
#8A1EA8 #A8451E #3CA81E #1E81A8
square
#8A1EA8 #A8451E #3CA81E #1E81A8
split-complementary
#8A1EA8 #81A81E #1EA845
monochromatic
#350B40 #5F1574 #8A1EA8 #B32AD9 #C65EE2

Accessibility & contrast

On white

7.42
#8A1EA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#8A1EA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1EA8
7.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1EA8#FFFFFF#000000##FFFFFF
##8A1EA81.007.422.837.42
#FFFFFF7.421.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAC
Deuteranopia (green-blind)
#2158A5
Tritanopia (blue-blind)
#883F65
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #8a1ea8;
/* rgb */ color: rgb(138, 30, 168);
/* oklch */ color: oklch(47.9% 0.210 317.3);
Tailwind
colors: {
  custom: {
    50: '#b169c3',
    500: '#8a1ea8',
    950: '#000000',
  },
}
SCSS
$custom: #8a1ea8;
$custom-light: #b169c3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1ea8",
  "rgb": {
    "r": 138,
    "g": 30,
    "b": 168
  },
  "hsl": {
    "h": 286.957,
    "s": 69.697,
    "l": 38.824
  },
  "oklch": {
    "l": 0.47858,
    "c": 0.20983,
    "h": 317.3
  },
  "luminance": 0.09159
}

Semantic roles & 50–950 ramp

primary
#8A1EA8
secondary
#73C75B
accent
#ED3B62
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110712
muted
#807A81

Preview Lab

Preview with #8A1EA8

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

Preview Lab → · Contrast checker → · Palette generator →

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