#8A1E7F#8A1E7F

#8A1E7F is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.2% C 0.177 H 332.7°. Best body text is #FFFFFF at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#8A1E7F
RGBrgb(138, 30, 127)
HSLhsl(306, 64%, 33%)
HSVhsv(306, 78%, 54%)
CMYKcmyk(0%, 78.3%, 8%, 45.9%)
CIE-LABlab(33.70, 54.62, -29.52)
CIE-LCHlch(33.70, 62.09, 331.61°)
OKLaboklab(45.2% 0.1574 -0.0811)
OKLCHoklch(45.2% 0.177 332.7)
XYZxyz(14.7763, 7.8654, 20.8145)
Luminance0.0786 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1E7F #1E8A29
analogous
#5F1E8A #8A1E7F #8A1E49
triadic
#8A1E7F #7F8A1E #1E7F8A
tetradic
#8A1E7F #8A5F1E #1E8A29 #1E498A
square
#8A1E7F #8A5F1E #1E8A29 #1E498A
split-complementary
#8A1E7F #498A1E #1E8A5F
monochromatic
#250822 #581351 #8A1E7F #BC29AD #D84BC9

Accessibility & contrast

On white

8.16
#8A1E7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A1E7F
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1E7F#FFFFFF#000000##FFFFFF
##8A1E7F1.008.162.578.16
#FFFFFF8.161.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.161.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a1e7f;
/* rgb */ color: rgb(138, 30, 127);
/* oklch */ color: oklch(45.2% 0.177 332.7);
Tailwind
colors: {
  custom: {
    50: '#b067a4',
    500: '#8a1e7f',
    950: '#000000',
  },
}
SCSS
$custom: #8a1e7f;
$custom-light: #b067a4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1e7f",
  "rgb": {
    "r": 138,
    "g": 30,
    "b": 127
  },
  "hsl": {
    "h": 306.111,
    "s": 64.286,
    "l": 32.941
  },
  "oklch": {
    "l": 0.45196,
    "c": 0.17711,
    "h": 332.7
  },
  "luminance": 0.07864
}

Semantic roles & 50–950 ramp

primary
#8A1E7F
secondary
#4ABA55
accent
#E75241
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8A1E7F

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

Preview Lab → · Contrast checker → · Palette generator →

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