#8A1E8C#8A1E8C

#8A1E8C is a mid, vivid purple. Relative luminance 0.082; OKLCH L 46.0% C 0.187 H 327.3°. Best body text is #FFFFFF at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#8A1E8C
RGBrgb(138, 30, 140)
HSLhsl(299, 65%, 33%)
HSVhsv(299, 79%, 55%)
CMYKcmyk(1.4%, 78.6%, 0%, 45.1%)
CIE-LABlab(34.45, 56.76, -36.41)
CIE-LCHlch(34.45, 67.43, 327.32°)
OKLaboklab(45.97% 0.1574 -0.1011)
OKLCHoklch(45.97% 0.187 327.3)
XYZxyz(15.6789, 8.2264, 25.5679)
Luminance0.0823 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1E8C #208C1E
analogous
#531E8C #8A1E8C #8C1E57
triadic
#8A1E8C #8C8A1E #1E8C8A
tetradic
#8A1E8C #8C531E #208C1E #1E578C
square
#8A1E8C #8C531E #208C1E #1E578C
split-complementary
#8A1E8C #578C1E #1E8C53
monochromatic
#270827 #58135A #8A1E8C #BC29BE #D64CD9

Accessibility & contrast

On white

7.94
#8A1E8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A1E8C
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1E8C#FFFFFF#000000##FFFFFF
##8A1E8C1.007.942.657.94
#FFFFFF7.941.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00488F
Deuteranopia (green-blind)
#3C5689
Tritanopia (blue-blind)
#8E3155
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8a1e8c;
/* rgb */ color: rgb(138, 30, 140);
/* oklch */ color: oklch(46.0% 0.187 327.3);
Tailwind
colors: {
  custom: {
    50: '#b068ae',
    500: '#8a1e8c',
    950: '#000000',
  },
}
SCSS
$custom: #8a1e8c;
$custom-light: #b068ae;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1e8c",
  "rgb": {
    "r": 138,
    "g": 30,
    "b": 140
  },
  "hsl": {
    "h": 298.909,
    "s": 64.706,
    "l": 33.333
  },
  "oklch": {
    "l": 0.45972,
    "c": 0.18709,
    "h": 327.3
  },
  "luminance": 0.08225
}

Semantic roles & 50–950 ramp

primary
#8A1E8C
secondary
#4DBB4B
accent
#E84043
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A1E8C

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

Preview Lab → · Contrast checker → · Palette generator →

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