#8A1E87#8A1E87

#8A1E87 is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.7% C 0.183 H 329.3°. Best body text is #FFFFFF at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#8A1E87
RGBrgb(138, 30, 135)
HSLhsl(302, 64%, 33%)
HSVhsv(302, 78%, 54%)
CMYKcmyk(0%, 78.3%, 2.2%, 45.9%)
CIE-LABlab(34.15, 55.92, -33.79)
CIE-LCHlch(34.15, 65.33, 328.86°)
OKLaboklab(45.67% 0.1576 -0.0935)
OKLCHoklch(45.67% 0.183 329.3)
XYZxyz(15.3186, 8.0823, 23.6702)
Luminance0.0808 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1E87 #1E8A21
analogous
#571E8A #8A1E87 #8A1E51
triadic
#8A1E87 #878A1E #1E878A
tetradic
#8A1E87 #8A571E #1E8A21 #1E518A
square
#8A1E87 #8A571E #1E8A21 #1E518A
split-complementary
#8A1E87 #518A1E #1E8A57
monochromatic
#250825 #581356 #8A1E87 #BC29B8 #D84BD4

Accessibility & contrast

On white

8.03
#8A1E87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#8A1E87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1E87
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1E87#FFFFFF#000000##FFFFFF
##8A1E871.008.032.628.03
#FFFFFF8.031.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#09478A
Deuteranopia (green-blind)
#3F5584
Tritanopia (blue-blind)
#8F2F52
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8a1e87;
/* rgb */ color: rgb(138, 30, 135);
/* oklch */ color: oklch(45.7% 0.183 329.3);
Tailwind
colors: {
  custom: {
    50: '#b067aa',
    500: '#8a1e87',
    950: '#000000',
  },
}
SCSS
$custom: #8a1e87;
$custom-light: #b067aa;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1e87",
  "rgb": {
    "r": 138,
    "g": 30,
    "b": 135
  },
  "hsl": {
    "h": 301.667,
    "s": 64.286,
    "l": 32.941
  },
  "oklch": {
    "l": 0.45666,
    "c": 0.1832,
    "h": 329.3
  },
  "luminance": 0.08081
}

Semantic roles & 50–950 ramp

primary
#8A1E87
secondary
#4ABA4D
accent
#E74541
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A1E87

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

Preview Lab → · Contrast checker → · Palette generator →

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