#8A1EA1#8A1EA1

#8A1EA1 is a mid, highly saturated purple. Relative luminance 0.089; OKLCH L 47.4% C 0.204 H 319.6°. Best body text is #FFFFFF at 7.55:1 contrast (WCAG AA passes).

Color values

HEX#8A1EA1
RGBrgb(138, 30, 161)
HSLhsl(289, 69%, 37%)
HSVhsv(289, 81%, 63%)
CMYKcmyk(14.3%, 81.4%, 0%, 36.9%)
CIE-LABlab(35.80, 60.50, -47.05)
CIE-LCHlch(35.80, 76.64, 322.13°)
OKLaboklab(47.36% 0.1554 -0.1322)
OKLCHoklch(47.36% 0.204 319.6)
XYZxyz(17.3777, 8.9059, 34.5150)
Luminance0.0891 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1EA1 #35A11E
analogous
#491EA1 #8A1EA1 #A11E76
triadic
#8A1EA1 #A18A1E #1EA18A
tetradic
#8A1EA1 #A1491E #35A11E #1E76A1
square
#8A1EA1 #A1491E #35A11E #1E76A1
split-complementary
#8A1EA1 #76A11E #1EA149
monochromatic
#320B3A #5E146D #8A1EA1 #B628D5 #C859E0

Accessibility & contrast

On white

7.55
#8A1EA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#8A1EA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1EA1
7.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1EA1#FFFFFF#000000##FFFFFF
##8A1EA11.007.552.787.55
#FFFFFF7.551.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA4
Deuteranopia (green-blind)
#2A589E
Tritanopia (blue-blind)
#8A3C61
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8a1ea1;
/* rgb */ color: rgb(138, 30, 161);
/* oklch */ color: oklch(47.4% 0.204 319.6);
Tailwind
colors: {
  custom: {
    50: '#b069bd',
    500: '#8a1ea1',
    950: '#000000',
  },
}
SCSS
$custom: #8a1ea1;
$custom-light: #b069bd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1ea1",
  "rgb": {
    "r": 138,
    "g": 30,
    "b": 161
  },
  "hsl": {
    "h": 289.466,
    "s": 68.586,
    "l": 37.451
  },
  "oklch": {
    "l": 0.47361,
    "c": 0.20404,
    "h": 319.6
  },
  "luminance": 0.08905
}

Semantic roles & 50–950 ramp

primary
#8A1EA1
secondary
#6AC457
accent
#EB3C5B
background
#FBF6FB
surface
#F6ECF7
border
#D0C7D0
text
#110712
muted
#807A81

Preview Lab

Preview with #8A1EA1

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

Preview Lab → · Contrast checker → · Palette generator →

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