#8D31B2#8D31B2

#8D31B2 is a mid, highly saturated purple. Relative luminance 0.111; OKLCH L 50.6% C 0.201 H 314.3°. Best body text is #FFFFFF at 6.53:1 contrast (WCAG AA passes).

Color values

HEX#8D31B2
RGBrgb(141, 49, 178)
HSLhsl(283, 57%, 45%)
HSVhsv(283, 72%, 70%)
CMYKcmyk(20.8%, 72.5%, 0%, 30.2%)
CIE-LABlab(39.71, 57.87, -50.91)
CIE-LCHlch(39.71, 77.07, 318.66°)
OKLaboklab(50.58% 0.14 -0.1436)
OKLCHoklch(50.58% 0.201 314.3)
XYZxyz(20.1173, 11.0744, 43.1887)
Luminance0.1107 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D31B2 #56B231
analogous
#4D31B2 #8D31B2 #B23196
triadic
#8D31B2 #B28D31 #31B28D
tetradic
#8D31B2 #B24D31 #56B231 #3196B2
square
#8D31B2 #B24D31 #56B231 #3196B2
split-complementary
#8D31B2 #96B231 #31B24D
monochromatic
#411752 #672482 #8D31B2 #AB51CF #C281DC

Accessibility & contrast

On white

6.53
#8D31B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#8D31B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D31B2
6.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D31B2#FFFFFF#000000##FFFFFF
##8D31B21.006.533.216.53
#FFFFFF6.531.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B6
Deuteranopia (green-blind)
#2A60AF
Tritanopia (blue-blind)
#8A4D6F
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8d31b2;
/* rgb */ color: rgb(141, 49, 178);
/* oklch */ color: oklch(50.6% 0.201 314.3);
Tailwind
colors: {
  custom: {
    50: '#b272ca',
    500: '#8d31b2',
    950: '#000000',
  },
}
SCSS
$custom: #8d31b2;
$custom-light: #b272ca;
$custom-dark: #000000;
JSON
{
  "hex": "#8d31b2",
  "rgb": {
    "r": 141,
    "g": 49,
    "b": 178
  },
  "hsl": {
    "h": 282.791,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.50583,
    "c": 0.20055,
    "h": 314.3
  },
  "luminance": 0.11074
}

Semantic roles & 50–950 ramp

primary
#8D31B2
secondary
#8FC579
accent
#E04873
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8D31B2

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

Preview Lab → · Contrast checker → · Palette generator →

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