#8D1FAF#8D1FAF

#8D1FAF is a mid, highly saturated purple. Relative luminance 0.097; OKLCH L 48.9% C 0.216 H 316.2°. Best body text is #FFFFFF at 7.12:1 contrast (WCAG AA passes).

Color values

HEX#8D1FAF
RGBrgb(141, 31, 175)
HSLhsl(286, 70%, 40%)
HSVhsv(286, 82%, 69%)
CMYKcmyk(19.4%, 82.3%, 0%, 31.4%)
CIE-LABlab(37.37, 63.39, -52.90)
CIE-LCHlch(37.37, 82.56, 320.16°)
OKLaboklab(48.87% 0.1559 -0.1493)
OKLCHoklch(48.87% 0.216 316.2)
XYZxyz(19.2111, 9.7386, 41.4169)
Luminance0.0974 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D1FAF #41AF1F
analogous
#451FAF #8D1FAF #AF1F89
triadic
#8D1FAF #AF8D1F #1FAF8D
tetradic
#8D1FAF #AF451F #41AF1F #1F89AF
square
#8D1FAF #AF451F #41AF1F #1F89AF
split-complementary
#8D1FAF #89AF1F #1FAF45
monochromatic
#390D47 #63167B #8D1FAF #B231DA #C665E4

Accessibility & contrast

On white

7.12
#8D1FAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#8D1FAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8D1FAF
7.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D1FAF#FFFFFF#000000##FFFFFF
##8D1FAF1.007.122.957.12
#FFFFFF7.121.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B3
Deuteranopia (green-blind)
#1C5BAC
Tritanopia (blue-blind)
#8B4269
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #8d1faf;
/* rgb */ color: rgb(141, 31, 175);
/* oklch */ color: oklch(48.9% 0.216 316.2);
Tailwind
colors: {
  custom: {
    50: '#b36ac8',
    500: '#8d1faf',
    950: '#000000',
  },
}
SCSS
$custom: #8d1faf;
$custom-light: #b36ac8;
$custom-dark: #000000;
JSON
{
  "hex": "#8d1faf",
  "rgb": {
    "r": 141,
    "g": 31,
    "b": 175
  },
  "hsl": {
    "h": 285.833,
    "s": 69.903,
    "l": 40.392
  },
  "oklch": {
    "l": 0.48868,
    "c": 0.21587,
    "h": 316.2
  },
  "luminance": 0.09738
}

Semantic roles & 50–950 ramp

primary
#8D1FAF
secondary
#79C961
accent
#ED3B65
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#120713
muted
#817A82

Preview Lab

Preview with #8D1FAF

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

Preview Lab → · Contrast checker → · Palette generator →

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