#8D2FA6#8D2FA6

#8D2FA6 is a mid, vivid purple. Relative luminance 0.104; OKLCH L 49.6% C 0.192 H 318.3°. Best body text is #FFFFFF at 6.80:1 contrast (WCAG AA passes).

Color values

HEX#8D2FA6
RGBrgb(141, 47, 166)
HSLhsl(287, 56%, 42%)
HSVhsv(287, 72%, 65%)
CMYKcmyk(15.1%, 71.7%, 0%, 34.9%)
CIE-LABlab(38.64, 56.24, -45.48)
CIE-LCHlch(38.64, 72.33, 321.04°)
OKLaboklab(49.57% 0.1433 -0.1276)
OKLCHoklch(49.57% 0.192 318.3)
XYZxyz(18.8830, 10.4498, 37.0914)
Luminance0.1045 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D2FA6 #48A62F
analogous
#522FA6 #8D2FA6 #A62F84
triadic
#8D2FA6 #A68D2F #2FA68D
tetradic
#8D2FA6 #A6522F #48A62F #2F84A6
square
#8D2FA6 #A6522F #48A62F #2F84A6
split-complementary
#8D2FA6 #84A62F #2FA652
monochromatic
#3C1447 #642176 #8D2FA6 #AF47CB #C477D8

Accessibility & contrast

On white

6.80
#8D2FA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#8D2FA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D2FA6
6.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D2FA6#FFFFFF#000000##FFFFFF
##8D2FA61.006.803.096.80
#FFFFFF6.801.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055A9
Deuteranopia (green-blind)
#355EA3
Tritanopia (blue-blind)
#8C4667
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8d2fa6;
/* rgb */ color: rgb(141, 47, 166);
/* oklch */ color: oklch(49.6% 0.192 318.3);
Tailwind
colors: {
  custom: {
    50: '#b270c1',
    500: '#8d2fa6',
    950: '#000000',
  },
}
SCSS
$custom: #8d2fa6;
$custom-light: #b270c1;
$custom-dark: #000000;
JSON
{
  "hex": "#8d2fa6",
  "rgb": {
    "r": 141,
    "g": 47,
    "b": 166
  },
  "hsl": {
    "h": 287.395,
    "s": 55.869,
    "l": 41.765
  },
  "oklch": {
    "l": 0.49571,
    "c": 0.19187,
    "h": 318.3
  },
  "luminance": 0.10449
}

Semantic roles & 50–950 ramp

primary
#8D2FA6
secondary
#81C170
accent
#DF4968
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8D2FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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