#8A1C8D#8A1C8D

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

Color values

HEX#8A1C8D
RGBrgb(138, 28, 141)
HSLhsl(298, 67%, 33%)
HSVhsv(298, 80%, 55%)
CMYKcmyk(2.1%, 80.1%, 0%, 44.7%)
CIE-LABlab(34.31, 57.51, -37.25)
CIE-LCHlch(34.31, 68.52, 327.07°)
OKLaboklab(45.89% 0.159 -0.1035)
OKLCHoklch(45.89% 0.19 326.9)
XYZxyz(15.7039, 8.1580, 25.9417)
Luminance0.0816 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1C8D #1F8D1C
analogous
#511C8D #8A1C8D #8D1C57
triadic
#8A1C8D #8D8A1C #1C8D8A
tetradic
#8A1C8D #8D511C #1F8D1C #1C578D
square
#8A1C8D #8D511C #1F8D1C #1C578D
split-complementary
#8A1C8D #578D1C #1C8D51
monochromatic
#260827 #58125A #8A1C8D #BC26C0 #D749DB

Accessibility & contrast

On white

7.98
#8A1C8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#8A1C8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1C8D
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1C8D#FFFFFF#000000##FFFFFF
##8A1C8D1.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a1c8d;
/* rgb */ color: rgb(138, 28, 141);
/* oklch */ color: oklch(45.9% 0.190 326.9);
Tailwind
colors: {
  custom: {
    50: '#b067af',
    500: '#8a1c8d',
    950: '#000000',
  },
}
SCSS
$custom: #8a1c8d;
$custom-light: #b067af;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1c8d",
  "rgb": {
    "r": 138,
    "g": 28,
    "b": 141
  },
  "hsl": {
    "h": 298.407,
    "s": 66.864,
    "l": 33.137
  },
  "oklch": {
    "l": 0.45892,
    "c": 0.18975,
    "h": 326.9
  },
  "luminance": 0.08157
}

Semantic roles & 50–950 ramp

primary
#8A1C8D
secondary
#4BBD48
accent
#EA3E43
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A1C8D

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

Preview Lab → · Contrast checker → · Palette generator →

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