#8A1E7C#8A1E7C

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

Color values

HEX#8A1E7C
RGBrgb(138, 30, 124)
HSLhsl(308, 64%, 33%)
HSVhsv(308, 78%, 54%)
CMYKcmyk(0%, 78.3%, 10.1%, 45.9%)
CIE-LABlab(33.54, 54.15, -27.90)
CIE-LCHlch(33.54, 60.92, 332.74°)
OKLaboklab(45.03% 0.1573 -0.0765)
OKLCHoklch(45.03% 0.175 334.1)
XYZxyz(14.5837, 7.7883, 19.8001)
Luminance0.0779 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1E7C #1E8A2C
analogous
#621E8A #8A1E7C #8A1E46
triadic
#8A1E7C #7C8A1E #1E7C8A
tetradic
#8A1E7C #8A621E #1E8A2C #1E468A
square
#8A1E7C #8A621E #1E8A2C #1E468A
split-complementary
#8A1E7C #468A1E #1E8A62
monochromatic
#250822 #58134F #8A1E7C #BC29A9 #D84BC5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A1E7C#FFFFFF#000000##FFFFFF
##8A1E7C1.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)
#1B457E
Deuteranopia (green-blind)
#445479
Tritanopia (blue-blind)
#91294C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #8a1e7c;
/* rgb */ color: rgb(138, 30, 124);
/* oklch */ color: oklch(45.0% 0.175 334.1);
Tailwind
colors: {
  custom: {
    50: '#b067a2',
    500: '#8a1e7c',
    950: '#000000',
  },
}
SCSS
$custom: #8a1e7c;
$custom-light: #b067a2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1e7c",
  "rgb": {
    "r": 138,
    "g": 30,
    "b": 124
  },
  "hsl": {
    "h": 307.778,
    "s": 64.286,
    "l": 32.941
  },
  "oklch": {
    "l": 0.45026,
    "c": 0.17489,
    "h": 334.1
  },
  "luminance": 0.07787
}

Semantic roles & 50–950 ramp

primary
#8A1E7C
secondary
#4ABA58
accent
#E75641
background
#FBF6FA
surface
#F6EBF3
border
#D0C6CD
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8A1E7C

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

Preview Lab → · Contrast checker → · Palette generator →

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