#8A1D8C#8A1D8C

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

Color values

HEX#8A1D8C
RGBrgb(138, 29, 140)
HSLhsl(299, 66%, 33%)
HSVhsv(299, 79%, 55%)
CMYKcmyk(1.4%, 79.3%, 0%, 45.1%)
CIE-LABlab(34.35, 57.06, -36.57)
CIE-LCHlch(34.35, 67.77, 327.34°)
OKLaboklab(45.9% 0.1583 -0.1016)
OKLCHoklch(45.9% 0.188 327.3)
XYZxyz(15.6540, 8.1766, 25.5596)
Luminance0.0818 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1D8C #1F8C1D
analogous
#521D8C #8A1D8C #8C1D56
triadic
#8A1D8C #8C8A1D #1D8C8A
tetradic
#8A1D8C #8C521D #1F8C1D #1D568C
square
#8A1D8C #8C521D #1F8C1D #1D568C
split-complementary
#8A1D8C #568C1D #1D8C52
monochromatic
#260827 #581259 #8A1D8C #BC28BF #D74AD9

Accessibility & contrast

On white

7.97
#8A1D8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#8A1D8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1D8C
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1D8C#FFFFFF#000000##FFFFFF
##8A1D8C1.007.972.647.97
#FFFFFF7.971.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a1d8c;
/* rgb */ color: rgb(138, 29, 140);
/* oklch */ color: oklch(45.9% 0.188 327.3);
Tailwind
colors: {
  custom: {
    50: '#b067ae',
    500: '#8a1d8c',
    950: '#000000',
  },
}
SCSS
$custom: #8a1d8c;
$custom-light: #b067ae;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1d8c",
  "rgb": {
    "r": 138,
    "g": 29,
    "b": 140
  },
  "hsl": {
    "h": 298.919,
    "s": 65.68,
    "l": 33.137
  },
  "oklch": {
    "l": 0.459,
    "c": 0.18804,
    "h": 327.3
  },
  "luminance": 0.08175
}

Semantic roles & 50–950 ramp

primary
#8A1D8C
secondary
#4BBC49
accent
#E93F42
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A1D8C

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

Preview Lab → · Contrast checker → · Palette generator →

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