#8A1F8D#8A1F8D

#8A1F8D is a mid, vivid purple. Relative luminance 0.083; OKLCH L 46.1% C 0.187 H 326.9°. Best body text is #FFFFFF at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#8A1F8D
RGBrgb(138, 31, 141)
HSLhsl(298, 64%, 34%)
HSVhsv(298, 78%, 55%)
CMYKcmyk(2.1%, 78%, 0%, 44.7%)
CIE-LABlab(34.62, 56.63, -36.76)
CIE-LCHlch(34.62, 67.51, 327.01°)
OKLaboklab(46.11% 0.1565 -0.1021)
OKLCHoklch(46.11% 0.187 326.9)
XYZxyz(15.7787, 8.3075, 25.9666)
Luminance0.0831 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1F8D #228D1F
analogous
#531F8D #8A1F8D #8D1F59
triadic
#8A1F8D #8D8A1F #1F8D8A
tetradic
#8A1F8D #8D531F #228D1F #1F598D
square
#8A1F8D #8D531F #228D1F #1F598D
split-complementary
#8A1F8D #598D1F #1F8D53
monochromatic
#280929 #59145B #8A1F8D #BB2ABF #D44ED8

Accessibility & contrast

On white

7.89
#8A1F8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A1F8D
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1F8D#FFFFFF#000000##FFFFFF
##8A1F8D1.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004990
Deuteranopia (green-blind)
#3B568A
Tritanopia (blue-blind)
#8E3255
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8a1f8d;
/* rgb */ color: rgb(138, 31, 141);
/* oklch */ color: oklch(46.1% 0.187 326.9);
Tailwind
colors: {
  custom: {
    50: '#b068af',
    500: '#8a1f8d',
    950: '#000000',
  },
}
SCSS
$custom: #8a1f8d;
$custom-light: #b068af;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1f8d",
  "rgb": {
    "r": 138,
    "g": 31,
    "b": 141
  },
  "hsl": {
    "h": 298.364,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.46109,
    "c": 0.18691,
    "h": 326.9
  },
  "luminance": 0.08306
}

Semantic roles & 50–950 ramp

primary
#8A1F8D
secondary
#50BB4D
accent
#E74145
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A1F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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