#8A1B8D#8A1B8D

#8A1B8D is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.8% C 0.191 H 326.9°. Best body text is #FFFFFF at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#8A1B8D
RGBrgb(138, 27, 141)
HSLhsl(298, 68%, 33%)
HSVhsv(298, 81%, 55%)
CMYKcmyk(2.1%, 80.9%, 0%, 44.7%)
CIE-LABlab(34.21, 57.79, -37.40)
CIE-LCHlch(34.21, 68.83, 327.09°)
OKLaboklab(45.82% 0.1598 -0.104)
OKLCHoklch(45.82% 0.191 326.9)
XYZxyz(15.6806, 8.1114, 25.9339)
Luminance0.0811 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1B8D #1E8D1B
analogous
#511B8D #8A1B8D #8D1B57
triadic
#8A1B8D #8D8A1B #1B8D8A
tetradic
#8A1B8D #8D511B #1E8D1B #1B578D
square
#8A1B8D #8D511B #1E8D1B #1B578D
split-complementary
#8A1B8D #578D1B #1B8D51
monochromatic
#250726 #58115A #8A1B8D #BC25C0 #D847DC

Accessibility & contrast

On white

8.01
#8A1B8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A1B8D
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1B8D#FFFFFF#000000##FFFFFF
##8A1B8D1.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004890
Deuteranopia (green-blind)
#3A558A
Tritanopia (blue-blind)
#8E3054
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8a1b8d;
/* rgb */ color: rgb(138, 27, 141);
/* oklch */ color: oklch(45.8% 0.191 326.9);
Tailwind
colors: {
  custom: {
    50: '#b067af',
    500: '#8a1b8d',
    950: '#000000',
  },
}
SCSS
$custom: #8a1b8d;
$custom-light: #b067af;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1b8d",
  "rgb": {
    "r": 138,
    "g": 27,
    "b": 141
  },
  "hsl": {
    "h": 298.421,
    "s": 67.857,
    "l": 32.941
  },
  "oklch": {
    "l": 0.45824,
    "c": 0.19064,
    "h": 326.9
  },
  "luminance": 0.0811
}

Semantic roles & 50–950 ramp

primary
#8A1B8D
secondary
#4ABD46
accent
#EB3D42
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A1B8D

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

Preview Lab → · Contrast checker → · Palette generator →

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