#8A1F8E#8A1F8E

#8A1F8E is a mid, vivid purple. Relative luminance 0.083; OKLCH L 46.2% C 0.188 H 326.5°. Best body text is #FFFFFF at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#8A1F8E
RGBrgb(138, 31, 142)
HSLhsl(298, 64%, 34%)
HSVhsv(298, 78%, 56%)
CMYKcmyk(2.8%, 78.2%, 0%, 44.3%)
CIE-LABlab(34.68, 56.80, -37.28)
CIE-LCHlch(34.68, 67.94, 326.72°)
OKLaboklab(46.17% 0.1565 -0.1036)
OKLCHoklch(46.17% 0.188 326.5)
XYZxyz(15.8534, 8.3374, 26.3602)
Luminance0.0834 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1F8E #238E1F
analogous
#531F8E #8A1F8E #8E1F5B
triadic
#8A1F8E #8E8A1F #1F8E8A
tetradic
#8A1F8E #8E531F #238E1F #1F5B8E
square
#8A1F8E #8E531F #238E1F #1F5B8E
split-complementary
#8A1F8E #5B8E1F #1F8E53
monochromatic
#28092A #59145C #8A1F8E #BB2AC0 #D44FD9

Accessibility & contrast

On white

7.87
#8A1F8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#8A1F8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1F8E
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1F8E#FFFFFF#000000##FFFFFF
##8A1F8E1.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004991
Deuteranopia (green-blind)
#3B568B
Tritanopia (blue-blind)
#8E3356
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8a1f8e;
/* rgb */ color: rgb(138, 31, 142);
/* oklch */ color: oklch(46.2% 0.188 326.5);
Tailwind
colors: {
  custom: {
    50: '#b068af',
    500: '#8a1f8e',
    950: '#000000',
  },
}
SCSS
$custom: #8a1f8e;
$custom-light: #b068af;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1f8e",
  "rgb": {
    "r": 138,
    "g": 31,
    "b": 142
  },
  "hsl": {
    "h": 297.838,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.46172,
    "c": 0.1877,
    "h": 326.5
  },
  "luminance": 0.08336
}

Semantic roles & 50–950 ramp

primary
#8A1F8E
secondary
#51BB4D
accent
#E74147
background
#FBF6FA
surface
#F6EBF5
border
#D0C6CF
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A1F8E

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

Preview Lab → · Contrast checker → · Palette generator →

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