#8A1E7E#8A1E7E

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

Color values

HEX#8A1E7E
RGBrgb(138, 30, 126)
HSLhsl(307, 64%, 33%)
HSVhsv(307, 78%, 54%)
CMYKcmyk(0%, 78.3%, 8.7%, 45.9%)
CIE-LABlab(33.65, 54.47, -28.98)
CIE-LCHlch(33.65, 61.70, 331.98°)
OKLaboklab(45.14% 0.1574 -0.0796)
OKLCHoklch(45.14% 0.176 333.2)
XYZxyz(14.7115, 7.8394, 20.4730)
Luminance0.0784 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1E7E #1E8A2A
analogous
#601E8A #8A1E7E #8A1E48
triadic
#8A1E7E #7E8A1E #1E7E8A
tetradic
#8A1E7E #8A601E #1E8A2A #1E488A
square
#8A1E7E #8A601E #1E8A2A #1E488A
split-complementary
#8A1E7E #488A1E #1E8A60
monochromatic
#250822 #581350 #8A1E7E #BC29AC #D84BC8

Accessibility & contrast

On white

8.18
#8A1E7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#8A1E7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1E7E
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1E7E#FFFFFF#000000##FFFFFF
##8A1E7E1.008.182.578.18
#FFFFFF8.181.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#194581
Deuteranopia (green-blind)
#44557B
Tritanopia (blue-blind)
#902A4D
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #8a1e7e;
/* rgb */ color: rgb(138, 30, 126);
/* oklch */ color: oklch(45.1% 0.176 333.2);
Tailwind
colors: {
  custom: {
    50: '#b067a4',
    500: '#8a1e7e',
    950: '#000000',
  },
}
SCSS
$custom: #8a1e7e;
$custom-light: #b067a4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1e7e",
  "rgb": {
    "r": 138,
    "g": 30,
    "b": 126
  },
  "hsl": {
    "h": 306.667,
    "s": 64.286,
    "l": 32.941
  },
  "oklch": {
    "l": 0.45139,
    "c": 0.17636,
    "h": 333.2
  },
  "luminance": 0.07838
}

Semantic roles & 50–950 ramp

primary
#8A1E7E
secondary
#4ABA56
accent
#E75341
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8A1E7E

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

Preview Lab → · Contrast checker → · Palette generator →

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