#8A1E7D#8A1E7D

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

Color values

HEX#8A1E7D
RGBrgb(138, 30, 125)
HSLhsl(307, 64%, 33%)
HSVhsv(307, 78%, 54%)
CMYKcmyk(0%, 78.3%, 9.4%, 45.9%)
CIE-LABlab(33.59, 54.31, -28.44)
CIE-LCHlch(33.59, 61.30, 332.36°)
OKLaboklab(45.08% 0.1573 -0.078)
OKLCHoklch(45.08% 0.176 333.6)
XYZxyz(14.6473, 7.8138, 20.1348)
Luminance0.0781 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1E7D #1E8A2B
analogous
#611E8A #8A1E7D #8A1E47
triadic
#8A1E7D #7D8A1E #1E7D8A
tetradic
#8A1E7D #8A611E #1E8A2B #1E478A
square
#8A1E7D #8A611E #1E8A2B #1E478A
split-complementary
#8A1E7D #478A1E #1E8A61
monochromatic
#250822 #58134F #8A1E7D #BC29AB #D84BC7

Accessibility & contrast

On white

8.20
#8A1E7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A1E7D
8.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1E7D#FFFFFF#000000##FFFFFF
##8A1E7D1.008.202.568.20
#FFFFFF8.201.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A4580
Deuteranopia (green-blind)
#44547A
Tritanopia (blue-blind)
#91294C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #8a1e7d;
/* rgb */ color: rgb(138, 30, 125);
/* oklch */ color: oklch(45.1% 0.176 333.6);
Tailwind
colors: {
  custom: {
    50: '#b067a3',
    500: '#8a1e7d',
    950: '#000000',
  },
}
SCSS
$custom: #8a1e7d;
$custom-light: #b067a3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1e7d",
  "rgb": {
    "r": 138,
    "g": 30,
    "b": 125
  },
  "hsl": {
    "h": 307.222,
    "s": 64.286,
    "l": 32.941
  },
  "oklch": {
    "l": 0.45082,
    "c": 0.17562,
    "h": 333.6
  },
  "luminance": 0.07812
}

Semantic roles & 50–950 ramp

primary
#8A1E7D
secondary
#4ABA57
accent
#E75541
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8A1E7D

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

Preview Lab → · Contrast checker → · Palette generator →

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