#8A1D7F#8A1D7F

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

Color values

HEX#8A1D7F
RGBrgb(138, 29, 127)
HSLhsl(306, 65%, 33%)
HSVhsv(306, 79%, 54%)
CMYKcmyk(0%, 79%, 8%, 45.9%)
CIE-LABlab(33.60, 54.93, -29.69)
CIE-LCHlch(33.60, 62.43, 331.61°)
OKLaboklab(45.12% 0.1583 -0.0816)
OKLCHoklch(45.12% 0.178 332.7)
XYZxyz(14.7514, 7.8156, 20.8062)
Luminance0.0781 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1D7F #1D8A28
analogous
#5E1D8A #8A1D7F #8A1D48
triadic
#8A1D7F #7F8A1D #1D7F8A
tetradic
#8A1D7F #8A5E1D #1D8A28 #1D488A
square
#8A1D7F #8A5E1D #1D8A28 #1D488A
split-complementary
#8A1D7F #488A1D #1D8A5E
monochromatic
#250822 #571250 #8A1D7F #BD28AE #D949CA

Accessibility & contrast

On white

8.19
#8A1D7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A1D7F
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1D7F#FFFFFF#000000##FFFFFF
##8A1D7F1.008.192.568.19
#FFFFFF8.191.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#164582
Deuteranopia (green-blind)
#43547C
Tritanopia (blue-blind)
#902A4D
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #8a1d7f;
/* rgb */ color: rgb(138, 29, 127);
/* oklch */ color: oklch(45.1% 0.178 332.7);
Tailwind
colors: {
  custom: {
    50: '#b067a4',
    500: '#8a1d7f',
    950: '#000000',
  },
}
SCSS
$custom: #8a1d7f;
$custom-light: #b067a4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1d7f",
  "rgb": {
    "r": 138,
    "g": 29,
    "b": 127
  },
  "hsl": {
    "h": 306.055,
    "s": 65.269,
    "l": 32.745
  },
  "oklch": {
    "l": 0.4512,
    "c": 0.17812,
    "h": 332.7
  },
  "luminance": 0.07814
}

Semantic roles & 50–950 ramp

primary
#8A1D7F
secondary
#48BB54
accent
#E85140
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8A1D7F

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

Preview Lab → · Contrast checker → · Palette generator →

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