#8A1E8A#8A1E8A

#8A1E8A is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.8% C 0.186 H 328.1°. Best body text is #FFFFFF at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#8A1E8A
RGBrgb(138, 30, 138)
HSLhsl(300, 64%, 33%)
HSVhsv(300, 78%, 54%)
CMYKcmyk(0%, 78.3%, 0%, 45.9%)
CIE-LABlab(34.33, 56.42, -35.36)
CIE-LCHlch(34.33, 66.59, 327.92°)
OKLaboklab(45.85% 0.1575 -0.0981)
OKLCHoklch(45.85% 0.186 328.1)
XYZxyz(15.5328, 8.1680, 24.7983)
Luminance0.0817 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1E8A #1E8A1E
analogous
#541E8A #8A1E8A #8A1E54
triadic
#8A1E8A #8A8A1E #1E8A8A
tetradic
#8A1E8A #8A541E #1E8A1E #1E548A
square
#8A1E8A #8A541E #1E8A1E #1E548A
split-complementary
#8A1E8A #548A1E #1E8A54
monochromatic
#250825 #581358 #8A1E8A #BC29BC #D84BD8

Accessibility & contrast

On white

7.97
#8A1E8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#8A1E8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1E8A
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1E8A#FFFFFF#000000##FFFFFF
##8A1E8A1.007.972.637.97
#FFFFFF7.971.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#01488D
Deuteranopia (green-blind)
#3D5687
Tritanopia (blue-blind)
#8F3053
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8a1e8a;
/* rgb */ color: rgb(138, 30, 138);
/* oklch */ color: oklch(45.8% 0.186 328.1);
Tailwind
colors: {
  custom: {
    50: '#b068ac',
    500: '#8a1e8a',
    950: '#000000',
  },
}
SCSS
$custom: #8a1e8a;
$custom-light: #b068ac;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1e8a",
  "rgb": {
    "r": 138,
    "g": 30,
    "b": 138
  },
  "hsl": {
    "h": 300,
    "s": 64.286,
    "l": 32.941
  },
  "oklch": {
    "l": 0.45848,
    "c": 0.18553,
    "h": 328.1
  },
  "luminance": 0.08167
}

Semantic roles & 50–950 ramp

primary
#8A1E8A
secondary
#4ABA4A
accent
#E74141
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A1E8A

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

Preview Lab → · Contrast checker → · Palette generator →

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