#8A1D81#8A1D81

#8A1D81 is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.2% C 0.180 H 331.9°. Best body text is #FFFFFF at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#8A1D81
RGBrgb(138, 29, 129)
HSLhsl(305, 65%, 33%)
HSVhsv(305, 79%, 54%)
CMYKcmyk(0%, 79%, 6.5%, 45.9%)
CIE-LABlab(33.71, 55.24, -30.76)
CIE-LCHlch(33.71, 63.23, 330.89°)
OKLaboklab(45.24% 0.1584 -0.0847)
OKLCHoklch(45.24% 0.18 331.9)
XYZxyz(14.8831, 7.8682, 21.4995)
Luminance0.0787 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1D81 #1D8A26
analogous
#5C1D8A #8A1D81 #8A1D4B
triadic
#8A1D81 #818A1D #1D818A
tetradic
#8A1D81 #8A5C1D #1D8A26 #1D4B8A
square
#8A1D81 #8A5C1D #1D8A26 #1D4B8A
split-complementary
#8A1D81 #4B8A1D #1D8A5C
monochromatic
#250822 #571252 #8A1D81 #BD28B0 #D949CD

Accessibility & contrast

On white

8.16
#8A1D81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#8A1D81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1D81
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1D81#FFFFFF#000000##FFFFFF
##8A1D811.008.162.578.16
#FFFFFF8.161.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#134684
Deuteranopia (green-blind)
#42557E
Tritanopia (blue-blind)
#902B4E
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #8a1d81;
/* rgb */ color: rgb(138, 29, 129);
/* oklch */ color: oklch(45.2% 0.180 331.9);
Tailwind
colors: {
  custom: {
    50: '#b067a6',
    500: '#8a1d81',
    950: '#000000',
  },
}
SCSS
$custom: #8a1d81;
$custom-light: #b067a6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1d81",
  "rgb": {
    "r": 138,
    "g": 29,
    "b": 129
  },
  "hsl": {
    "h": 304.954,
    "s": 65.269,
    "l": 32.745
  },
  "oklch": {
    "l": 0.45236,
    "c": 0.1796,
    "h": 331.9
  },
  "luminance": 0.07867
}

Semantic roles & 50–950 ramp

primary
#8A1D81
secondary
#48BB51
accent
#E84D40
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8A1D81

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

Preview Lab → · Contrast checker → · Palette generator →

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