#8A1E8D#8A1E8D

#8A1E8D is a mid, vivid purple. Relative luminance 0.083; OKLCH L 46.0% C 0.188 H 326.9°. Best body text is #FFFFFF at 7.92:1 contrast (WCAG AA passes).

Color values

HEX#8A1E8D
RGBrgb(138, 30, 141)
HSLhsl(298, 65%, 34%)
HSVhsv(298, 79%, 55%)
CMYKcmyk(2.1%, 78.7%, 0%, 44.7%)
CIE-LABlab(34.51, 56.93, -36.93)
CIE-LCHlch(34.51, 67.86, 327.03°)
OKLaboklab(46.04% 0.1574 -0.1026)
OKLCHoklch(46.04% 0.188 326.9)
XYZxyz(15.7530, 8.2560, 25.9580)
Luminance0.0825 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1E8D #218D1E
analogous
#521E8D #8A1E8D #8D1E58
triadic
#8A1E8D #8D8A1E #1E8D8A
tetradic
#8A1E8D #8D521E #218D1E #1E588D
square
#8A1E8D #8D521E #218D1E #1E588D
split-complementary
#8A1E8D #588D1E #1E8D52
monochromatic
#270928 #59135B #8A1E8D #BB29BF #D54CD9

Accessibility & contrast

On white

7.92
#8A1E8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#8A1E8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1E8D
7.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1E8D#FFFFFF#000000##FFFFFF
##8A1E8D1.007.922.657.92
#FFFFFF7.921.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004990
Deuteranopia (green-blind)
#3B568A
Tritanopia (blue-blind)
#8E3255
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8a1e8d;
/* rgb */ color: rgb(138, 30, 141);
/* oklch */ color: oklch(46.0% 0.188 326.9);
Tailwind
colors: {
  custom: {
    50: '#b068af',
    500: '#8a1e8d',
    950: '#000000',
  },
}
SCSS
$custom: #8a1e8d;
$custom-light: #b068af;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1e8d",
  "rgb": {
    "r": 138,
    "g": 30,
    "b": 141
  },
  "hsl": {
    "h": 298.378,
    "s": 64.912,
    "l": 33.529
  },
  "oklch": {
    "l": 0.46035,
    "c": 0.18788,
    "h": 326.9
  },
  "luminance": 0.08255
}

Semantic roles & 50–950 ramp

primary
#8A1E8D
secondary
#4EBC4B
accent
#E84044
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A1E8D

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

Preview Lab → · Contrast checker → · Palette generator →

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