#8A1E8E#8A1E8E

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

Color values

HEX#8A1E8E
RGBrgb(138, 30, 142)
HSLhsl(298, 65%, 34%)
HSVhsv(298, 79%, 56%)
CMYKcmyk(2.8%, 78.9%, 0%, 44.3%)
CIE-LABlab(34.57, 57.10, -37.44)
CIE-LCHlch(34.57, 68.28, 326.75°)
OKLaboklab(46.1% 0.1573 -0.1041)
OKLCHoklch(46.1% 0.189 326.5)
XYZxyz(15.8277, 8.2859, 26.3516)
Luminance0.0828 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1E8E #228E1E
analogous
#521E8E #8A1E8E #8E1E5A
triadic
#8A1E8E #8E8A1E #1E8E8A
tetradic
#8A1E8E #8E521E #228E1E #1E5A8E
square
#8A1E8E #8E521E #228E1E #1E5A8E
split-complementary
#8A1E8E #5A8E1E #1E8E52
monochromatic
#280929 #59135B #8A1E8E #BB29C1 #D44DD9

Accessibility & contrast

On white

7.90
#8A1E8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A1E8E
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1E8E#FFFFFF#000000##FFFFFF
##8A1E8E1.007.902.667.90
#FFFFFF7.901.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004991
Deuteranopia (green-blind)
#3A568B
Tritanopia (blue-blind)
#8E3256
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8a1e8e;
/* rgb */ color: rgb(138, 30, 142);
/* oklch */ color: oklch(46.1% 0.189 326.5);
Tailwind
colors: {
  custom: {
    50: '#b068af',
    500: '#8a1e8e',
    950: '#000000',
  },
}
SCSS
$custom: #8a1e8e;
$custom-light: #b068af;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1e8e",
  "rgb": {
    "r": 138,
    "g": 30,
    "b": 142
  },
  "hsl": {
    "h": 297.857,
    "s": 65.116,
    "l": 33.725
  },
  "oklch": {
    "l": 0.46098,
    "c": 0.18867,
    "h": 326.5
  },
  "luminance": 0.08285
}

Semantic roles & 50–950 ramp

primary
#8A1E8E
secondary
#50BC4C
accent
#E84046
background
#FBF6FA
surface
#F6EBF5
border
#D0C6CF
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A1E8E

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

Preview Lab → · Contrast checker → · Palette generator →

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