#8A1D82#8A1D82

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

Color values

HEX#8A1D82
RGBrgb(138, 29, 130)
HSLhsl(304, 65%, 33%)
HSVhsv(304, 79%, 54%)
CMYKcmyk(0%, 79%, 5.8%, 45.9%)
CIE-LABlab(33.76, 55.40, -31.30)
CIE-LCHlch(33.76, 63.63, 330.54°)
OKLaboklab(45.29% 0.1584 -0.0863)
OKLCHoklch(45.29% 0.18 331.4)
XYZxyz(14.9499, 7.8949, 21.8513)
Luminance0.0789 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1D82 #1D8A25
analogous
#5C1D8A #8A1D82 #8A1D4B
triadic
#8A1D82 #828A1D #1D828A
tetradic
#8A1D82 #8A5C1D #1D8A25 #1D4B8A
square
#8A1D82 #8A5C1D #1D8A25 #1D4B8A
split-complementary
#8A1D82 #4B8A1D #1D8A5C
monochromatic
#250823 #571252 #8A1D82 #BD28B2 #D949CE

Accessibility & contrast

On white

8.14
#8A1D82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#8A1D82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1D82
8.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1D82#FFFFFF#000000##FFFFFF
##8A1D821.008.142.588.14
#FFFFFF8.141.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#124685
Deuteranopia (green-blind)
#41557F
Tritanopia (blue-blind)
#902B4F
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #8a1d82;
/* rgb */ color: rgb(138, 29, 130);
/* oklch */ color: oklch(45.3% 0.180 331.4);
Tailwind
colors: {
  custom: {
    50: '#b067a7',
    500: '#8a1d82',
    950: '#000000',
  },
}
SCSS
$custom: #8a1d82;
$custom-light: #b067a7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1d82",
  "rgb": {
    "r": 138,
    "g": 29,
    "b": 130
  },
  "hsl": {
    "h": 304.404,
    "s": 65.269,
    "l": 32.745
  },
  "oklch": {
    "l": 0.45294,
    "c": 0.18036,
    "h": 331.4
  },
  "luminance": 0.07894
}

Semantic roles & 50–950 ramp

primary
#8A1D82
secondary
#48BB50
accent
#E84C40
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8A1D82

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

Preview Lab → · Contrast checker → · Palette generator →

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