#8A1C7D#8A1C7D

#8A1C7D is a dark, vivid purple. Relative luminance 0.077; OKLCH L 44.9% C 0.178 H 333.6°. Best body text is #FFFFFF at 8.26:1 contrast (WCAG AA passes).

Color values

HEX#8A1C7D
RGBrgb(138, 28, 125)
HSLhsl(307, 66%, 33%)
HSVhsv(307, 80%, 54%)
CMYKcmyk(0%, 79.7%, 9.4%, 45.9%)
CIE-LABlab(33.38, 54.91, -28.77)
CIE-LCHlch(33.38, 61.99, 332.35°)
OKLaboklab(44.93% 0.1591 -0.079)
OKLCHoklch(44.93% 0.178 333.6)
XYZxyz(14.5983, 7.7157, 20.1185)
Luminance0.0771 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1C7D #1C8A29
analogous
#601C8A #8A1C7D #8A1C46
triadic
#8A1C7D #7D8A1C #1C7D8A
tetradic
#8A1C7D #8A601C #1C8A29 #1C468A
square
#8A1C7D #8A601C #1C8A29 #1C468A
split-complementary
#8A1C7D #468A1C #1C8A60
monochromatic
#240721 #57124F #8A1C7D #BD26AB #DA47C8

Accessibility & contrast

On white

8.26
#8A1C7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#8A1C7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1C7D
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1C7D#FFFFFF#000000##FFFFFF
##8A1C7D1.008.262.548.26
#FFFFFF8.261.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#184480
Deuteranopia (green-blind)
#43547A
Tritanopia (blue-blind)
#91284C
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #8a1c7d;
/* rgb */ color: rgb(138, 28, 125);
/* oklch */ color: oklch(44.9% 0.178 333.6);
Tailwind
colors: {
  custom: {
    50: '#b066a3',
    500: '#8a1c7d',
    950: '#000000',
  },
}
SCSS
$custom: #8a1c7d;
$custom-light: #b066a3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1c7d",
  "rgb": {
    "r": 138,
    "g": 28,
    "b": 125
  },
  "hsl": {
    "h": 307.091,
    "s": 66.265,
    "l": 32.549
  },
  "oklch": {
    "l": 0.44933,
    "c": 0.17761,
    "h": 333.6
  },
  "luminance": 0.07714
}

Semantic roles & 50–950 ramp

primary
#8A1C7D
secondary
#46BB54
accent
#E9533F
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8A1C7D

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

Preview Lab → · Contrast checker → · Palette generator →

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