#8A1C7E#8A1C7E

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

Color values

HEX#8A1C7E
RGBrgb(138, 28, 126)
HSLhsl(307, 66%, 33%)
HSVhsv(307, 80%, 54%)
CMYKcmyk(0%, 79.7%, 8.7%, 45.9%)
CIE-LABlab(33.44, 55.06, -29.31)
CIE-LCHlch(33.44, 62.38, 331.97°)
OKLaboklab(44.99% 0.1591 -0.0805)
OKLCHoklch(44.99% 0.178 333.2)
XYZxyz(14.6625, 7.7414, 20.4566)
Luminance0.0774 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1C7E #1C8A28
analogous
#5F1C8A #8A1C7E #8A1C47
triadic
#8A1C7E #7E8A1C #1C7E8A
tetradic
#8A1C7E #8A5F1C #1C8A28 #1C478A
square
#8A1C7E #8A5F1C #1C8A28 #1C478A
split-complementary
#8A1C7E #478A1C #1C8A5F
monochromatic
#240721 #571250 #8A1C7E #BD26AC #DA47CA

Accessibility & contrast

On white

8.24
#8A1C7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#8A1C7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1C7E
8.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1C7E#FFFFFF#000000##FFFFFF
##8A1C7E1.008.242.558.24
#FFFFFF8.241.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#164581
Deuteranopia (green-blind)
#43547B
Tritanopia (blue-blind)
#90284C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #8a1c7e;
/* rgb */ color: rgb(138, 28, 126);
/* oklch */ color: oklch(45.0% 0.178 333.2);
Tailwind
colors: {
  custom: {
    50: '#b066a4',
    500: '#8a1c7e',
    950: '#000000',
  },
}
SCSS
$custom: #8a1c7e;
$custom-light: #b066a4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1c7e",
  "rgb": {
    "r": 138,
    "g": 28,
    "b": 126
  },
  "hsl": {
    "h": 306.545,
    "s": 66.265,
    "l": 32.549
  },
  "oklch": {
    "l": 0.4499,
    "c": 0.17835,
    "h": 333.2
  },
  "luminance": 0.0774
}

Semantic roles & 50–950 ramp

primary
#8A1C7E
secondary
#46BB53
accent
#E9513F
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8A1C7E

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

Preview Lab → · Contrast checker → · Palette generator →

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