#8A1D7E#8A1D7E

#8A1D7E is a mid, vivid purple. Relative luminance 0.078; OKLCH L 45.1% C 0.177 H 333.2°. Best body text is #FFFFFF at 8.21:1 contrast (WCAG AA passes).

Color values

HEX#8A1D7E
RGBrgb(138, 29, 126)
HSLhsl(307, 65%, 33%)
HSVhsv(307, 79%, 54%)
CMYKcmyk(0%, 79%, 8.7%, 45.9%)
CIE-LABlab(33.54, 54.77, -29.15)
CIE-LCHlch(33.54, 62.04, 331.98°)
OKLaboklab(45.06% 0.1583 -0.08)
OKLCHoklch(45.06% 0.177 333.2)
XYZxyz(14.6866, 7.7896, 20.4647)
Luminance0.0779 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1D7E #1D8A29
analogous
#601D8A #8A1D7E #8A1D47
triadic
#8A1D7E #7E8A1D #1D7E8A
tetradic
#8A1D7E #8A601D #1D8A29 #1D478A
square
#8A1D7E #8A601D #1D8A29 #1D478A
split-complementary
#8A1D7E #478A1D #1D8A60
monochromatic
#250822 #571250 #8A1D7E #BD28AC #D949C9

Accessibility & contrast

On white

8.21
#8A1D7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#8A1D7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1D7E
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1D7E#FFFFFF#000000##FFFFFF
##8A1D7E1.008.212.568.21
#FFFFFF8.211.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.211.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a1d7e;
/* rgb */ color: rgb(138, 29, 126);
/* oklch */ color: oklch(45.1% 0.177 333.2);
Tailwind
colors: {
  custom: {
    50: '#b067a4',
    500: '#8a1d7e',
    950: '#000000',
  },
}
SCSS
$custom: #8a1d7e;
$custom-light: #b067a4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1d7e",
  "rgb": {
    "r": 138,
    "g": 29,
    "b": 126
  },
  "hsl": {
    "h": 306.606,
    "s": 65.269,
    "l": 32.745
  },
  "oklch": {
    "l": 0.45063,
    "c": 0.17737,
    "h": 333.2
  },
  "luminance": 0.07788
}

Semantic roles & 50–950 ramp

primary
#8A1D7E
secondary
#48BB55
accent
#E85240
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8A1D7E

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

Preview Lab → · Contrast checker → · Palette generator →

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