#8A1E8F#8A1E8F

#8A1E8F is a mid, vivid purple. Relative luminance 0.083; OKLCH L 46.2% C 0.189 H 326.1°. Best body text is #FFFFFF at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#8A1E8F
RGBrgb(138, 30, 143)
HSLhsl(297, 65%, 34%)
HSVhsv(297, 79%, 56%)
CMYKcmyk(3.5%, 79%, 0%, 43.9%)
CIE-LABlab(34.63, 57.27, -37.96)
CIE-LCHlch(34.63, 68.71, 326.46°)
OKLaboklab(46.16% 0.1573 -0.1056)
OKLCHoklch(46.16% 0.189 326.1)
XYZxyz(15.9031, 8.3161, 26.7488)
Luminance0.0832 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1E8F #238F1E
analogous
#521E8F #8A1E8F #8F1E5C
triadic
#8A1E8F #8F8A1E #1E8F8A
tetradic
#8A1E8F #8F521E #238F1E #1E5C8F
square
#8A1E8F #8F521E #238F1E #1E5C8F
split-complementary
#8A1E8F #5C8F1E #1E8F52
monochromatic
#28092A #59135C #8A1E8F #BB29C2 #D44EDA

Accessibility & contrast

On white

7.89
#8A1E8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#8A1E8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1E8F
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1E8F#FFFFFF#000000##FFFFFF
##8A1E8F1.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004992
Deuteranopia (green-blind)
#3A568C
Tritanopia (blue-blind)
#8E3356
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8a1e8f;
/* rgb */ color: rgb(138, 30, 143);
/* oklch */ color: oklch(46.2% 0.189 326.1);
Tailwind
colors: {
  custom: {
    50: '#b068b0',
    500: '#8a1e8f',
    950: '#000000',
  },
}
SCSS
$custom: #8a1e8f;
$custom-light: #b068b0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1e8f",
  "rgb": {
    "r": 138,
    "g": 30,
    "b": 143
  },
  "hsl": {
    "h": 297.345,
    "s": 65.318,
    "l": 33.922
  },
  "oklch": {
    "l": 0.46161,
    "c": 0.18946,
    "h": 326.1
  },
  "luminance": 0.08315
}

Semantic roles & 50–950 ramp

primary
#8A1E8F
secondary
#51BC4C
accent
#E84047
background
#FBF6FA
surface
#F6EBF5
border
#D0C6CF
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A1E8F

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

Preview Lab → · Contrast checker → · Palette generator →

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