#8A1E8B#8A1E8B

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

Color values

HEX#8A1E8B
RGBrgb(138, 30, 139)
HSLhsl(299, 64%, 33%)
HSVhsv(299, 78%, 55%)
CMYKcmyk(0.7%, 78.4%, 0%, 45.5%)
CIE-LABlab(34.39, 56.59, -35.88)
CIE-LCHlch(34.39, 67.01, 327.62°)
OKLaboklab(45.91% 0.1575 -0.0996)
OKLCHoklch(45.91% 0.186 327.7)
XYZxyz(15.6055, 8.1970, 25.1813)
Luminance0.0820 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1E8B #1F8B1E
analogous
#541E8B #8A1E8B #8B1E55
triadic
#8A1E8B #8B8A1E #1E8B8A
tetradic
#8A1E8B #8B541E #1F8B1E #1E558B
square
#8A1E8B #8B541E #1F8B1E #1E558B
split-complementary
#8A1E8B #558B1E #1E8B54
monochromatic
#260826 #581359 #8A1E8B #BC29BD #D74BD8

Accessibility & contrast

On white

7.96
#8A1E8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#8A1E8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1E8B
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1E8B#FFFFFF#000000##FFFFFF
##8A1E8B1.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00488E
Deuteranopia (green-blind)
#3C5688
Tritanopia (blue-blind)
#8E3154
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8a1e8b;
/* rgb */ color: rgb(138, 30, 139);
/* oklch */ color: oklch(45.9% 0.186 327.7);
Tailwind
colors: {
  custom: {
    50: '#b068ad',
    500: '#8a1e8b',
    950: '#000000',
  },
}
SCSS
$custom: #8a1e8b;
$custom-light: #b068ad;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1e8b",
  "rgb": {
    "r": 138,
    "g": 30,
    "b": 139
  },
  "hsl": {
    "h": 299.45,
    "s": 64.497,
    "l": 33.137
  },
  "oklch": {
    "l": 0.4591,
    "c": 0.18631,
    "h": 327.7
  },
  "luminance": 0.08196
}

Semantic roles & 50–950 ramp

primary
#8A1E8B
secondary
#4BBB4A
accent
#E74042
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A1E8B

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

Preview Lab → · Contrast checker → · Palette generator →

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