#8D2FA5#8D2FA5

#8D2FA5 is a mid, vivid purple. Relative luminance 0.104; OKLCH L 49.5% C 0.191 H 318.6°. Best body text is #FFFFFF at 6.81:1 contrast (WCAG AA passes).

Color values

HEX#8D2FA5
RGBrgb(141, 47, 165)
HSLhsl(288, 56%, 42%)
HSVhsv(288, 72%, 65%)
CMYKcmyk(14.5%, 71.5%, 0%, 35.3%)
CIE-LABlab(38.57, 56.05, -44.98)
CIE-LCHlch(38.57, 71.86, 321.25°)
OKLaboklab(49.51% 0.1433 -0.1262)
OKLCHoklch(49.51% 0.191 318.6)
XYZxyz(18.7916, 10.4132, 36.6101)
Luminance0.1041 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D2FA5 #47A52F
analogous
#522FA5 #8D2FA5 #A52F82
triadic
#8D2FA5 #A58D2F #2FA58D
tetradic
#8D2FA5 #A5522F #47A52F #2F82A5
square
#8D2FA5 #A5522F #47A52F #2F82A5
split-complementary
#8D2FA5 #82A52F #2FA552
monochromatic
#3C1446 #642175 #8D2FA5 #B047CB #C476D8

Accessibility & contrast

On white

6.81
#8D2FA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#8D2FA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D2FA5
6.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D2FA5#FFFFFF#000000##FFFFFF
##8D2FA51.006.813.086.81
#FFFFFF6.811.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055A8
Deuteranopia (green-blind)
#365EA2
Tritanopia (blue-blind)
#8D4667
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8d2fa5;
/* rgb */ color: rgb(141, 47, 165);
/* oklch */ color: oklch(49.5% 0.191 318.6);
Tailwind
colors: {
  custom: {
    50: '#b270c0',
    500: '#8d2fa5',
    950: '#000000',
  },
}
SCSS
$custom: #8d2fa5;
$custom-light: #b270c0;
$custom-dark: #000000;
JSON
{
  "hex": "#8d2fa5",
  "rgb": {
    "r": 141,
    "g": 47,
    "b": 165
  },
  "hsl": {
    "h": 287.797,
    "s": 55.66,
    "l": 41.569
  },
  "oklch": {
    "l": 0.49505,
    "c": 0.19096,
    "h": 318.6
  },
  "luminance": 0.10412
}

Semantic roles & 50–950 ramp

primary
#8D2FA5
secondary
#80C070
accent
#DF4967
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8D2FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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