#8A1F8C#8A1F8C

#8A1F8C is a mid, vivid purple. Relative luminance 0.083; OKLCH L 46.0% C 0.186 H 327.3°. Best body text is #FFFFFF at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#8A1F8C
RGBrgb(138, 31, 140)
HSLhsl(299, 64%, 34%)
HSVhsv(299, 78%, 55%)
CMYKcmyk(1.4%, 77.9%, 0%, 45.1%)
CIE-LABlab(34.55, 56.46, -36.24)
CIE-LCHlch(34.55, 67.09, 327.31°)
OKLaboklab(46.05% 0.1566 -0.1006)
OKLCHoklch(46.05% 0.186 327.3)
XYZxyz(15.7046, 8.2778, 25.5765)
Luminance0.0828 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1F8C #218C1F
analogous
#531F8C #8A1F8C #8C1F57
triadic
#8A1F8C #8C8A1F #1F8C8A
tetradic
#8A1F8C #8C531F #218C1F #1F578C
square
#8A1F8C #8C531F #218C1F #1F578C
split-complementary
#8A1F8C #578C1F #1F8C53
monochromatic
#270928 #59145A #8A1F8C #BB2ABE #D54ED8

Accessibility & contrast

On white

7.91
#8A1F8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#8A1F8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1F8C
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1F8C#FFFFFF#000000##FFFFFF
##8A1F8C1.007.912.667.91
#FFFFFF7.911.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00498F
Deuteranopia (green-blind)
#3C5689
Tritanopia (blue-blind)
#8E3255
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8a1f8c;
/* rgb */ color: rgb(138, 31, 140);
/* oklch */ color: oklch(46.0% 0.186 327.3);
Tailwind
colors: {
  custom: {
    50: '#b068ae',
    500: '#8a1f8c',
    950: '#000000',
  },
}
SCSS
$custom: #8a1f8c;
$custom-light: #b068ae;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1f8c",
  "rgb": {
    "r": 138,
    "g": 31,
    "b": 140
  },
  "hsl": {
    "h": 298.899,
    "s": 63.743,
    "l": 33.529
  },
  "oklch": {
    "l": 0.46047,
    "c": 0.18611,
    "h": 327.3
  },
  "luminance": 0.08277
}

Semantic roles & 50–950 ramp

primary
#8A1F8C
secondary
#4EBB4C
accent
#E74144
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A1F8C

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

Preview Lab → · Contrast checker → · Palette generator →

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