#8D2FA7#8D2FA7

#8D2FA7 is a mid, vivid purple. Relative luminance 0.105; OKLCH L 49.6% C 0.193 H 318.0°. Best body text is #FFFFFF at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#8D2FA7
RGBrgb(141, 47, 167)
HSLhsl(287, 56%, 42%)
HSVhsv(287, 72%, 65%)
CMYKcmyk(15.6%, 71.9%, 0%, 34.5%)
CIE-LABlab(38.70, 56.44, -45.97)
CIE-LCHlch(38.70, 72.79, 320.84°)
OKLaboklab(49.64% 0.1432 -0.1291)
OKLCHoklch(49.64% 0.193 318)
XYZxyz(18.9751, 10.4866, 37.5763)
Luminance0.1049 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D2FA7 #49A72F
analogous
#512FA7 #8D2FA7 #A72F85
triadic
#8D2FA7 #A78D2F #2FA78D
tetradic
#8D2FA7 #A7512F #49A72F #2F85A7
square
#8D2FA7 #A7512F #49A72F #2F85A7
split-complementary
#8D2FA7 #85A72F #2FA751
monochromatic
#3C1447 #652277 #8D2FA7 #AF48CB #C478D9

Accessibility & contrast

On white

6.78
#8D2FA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#8D2FA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D2FA7
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D2FA7#FFFFFF#000000##FFFFFF
##8D2FA71.006.783.106.78
#FFFFFF6.781.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055AA
Deuteranopia (green-blind)
#345EA4
Tritanopia (blue-blind)
#8C4768
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8d2fa7;
/* rgb */ color: rgb(141, 47, 167);
/* oklch */ color: oklch(49.6% 0.193 318.0);
Tailwind
colors: {
  custom: {
    50: '#b270c2',
    500: '#8d2fa7',
    950: '#000000',
  },
}
SCSS
$custom: #8d2fa7;
$custom-light: #b270c2;
$custom-dark: #000000;
JSON
{
  "hex": "#8d2fa7",
  "rgb": {
    "r": 141,
    "g": 47,
    "b": 167
  },
  "hsl": {
    "h": 287,
    "s": 56.075,
    "l": 41.961
  },
  "oklch": {
    "l": 0.49638,
    "c": 0.19277,
    "h": 318
  },
  "luminance": 0.10486
}

Semantic roles & 50–950 ramp

primary
#8D2FA7
secondary
#82C171
accent
#DF4869
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110812
muted
#807B81

Preview Lab

Preview with #8D2FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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