#8A1A7D#8A1A7D

#8A1A7D is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.8% C 0.179 H 333.6°. Best body text is #FFFFFF at 8.32:1 contrast (WCAG AA passes).

Color values

HEX#8A1A7D
RGBrgb(138, 26, 125)
HSLhsl(307, 68%, 32%)
HSVhsv(307, 81%, 54%)
CMYKcmyk(0%, 81.2%, 9.4%, 45.9%)
CIE-LABlab(33.19, 55.47, -29.08)
CIE-LCHlch(33.19, 62.63, 332.34°)
OKLaboklab(44.79% 0.1608 -0.0798)
OKLCHoklch(44.79% 0.18 333.6)
XYZxyz(14.5524, 7.6240, 20.1032)
Luminance0.0762 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1A7D #1A8A27
analogous
#5F1A8A #8A1A7D #8A1A45
triadic
#8A1A7D #7D8A1A #1A7D8A
tetradic
#8A1A7D #8A5F1A #1A8A27 #1A458A
square
#8A1A7D #8A5F1A #1A8A27 #1A458A
split-complementary
#8A1A7D #458A1A #1A8A5F
monochromatic
#230720 #57104E #8A1A7D #BD24AC #DC43CA

Accessibility & contrast

On white

8.32
#8A1A7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#8A1A7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1A7D
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1A7D#FFFFFF#000000##FFFFFF
##8A1A7D1.008.322.528.32
#FFFFFF8.321.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#154480
Deuteranopia (green-blind)
#43547A
Tritanopia (blue-blind)
#91274B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #8a1a7d;
/* rgb */ color: rgb(138, 26, 125);
/* oklch */ color: oklch(44.8% 0.179 333.6);
Tailwind
colors: {
  custom: {
    50: '#b066a3',
    500: '#8a1a7d',
    950: '#000000',
  },
}
SCSS
$custom: #8a1a7d;
$custom-light: #b066a3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1a7d",
  "rgb": {
    "r": 138,
    "g": 26,
    "b": 125
  },
  "hsl": {
    "h": 306.964,
    "s": 68.293,
    "l": 32.157
  },
  "oklch": {
    "l": 0.44793,
    "c": 0.1795,
    "h": 333.6
  },
  "luminance": 0.07623
}

Semantic roles & 50–950 ramp

primary
#8A1A7D
secondary
#43BD51
accent
#EB513D
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11060F
muted
#807A7F

Preview Lab

Preview with #8A1A7D

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

Preview Lab → · Contrast checker → · Palette generator →

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