#8D31B3#8D31B3

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

Color values

HEX#8D31B3
RGBrgb(141, 49, 179)
HSLhsl(282, 57%, 45%)
HSVhsv(282, 73%, 70%)
CMYKcmyk(21.2%, 72.6%, 0%, 29.8%)
CIE-LABlab(39.77, 58.07, -51.39)
CIE-LCHlch(39.77, 77.54, 318.49°)
OKLaboklab(50.65% 0.1399 -0.145)
OKLCHoklch(50.65% 0.201 314)
XYZxyz(20.2181, 11.1147, 43.7194)
Luminance0.1111 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D31B3 #57B331
analogous
#4C31B3 #8D31B3 #B33198
triadic
#8D31B3 #B38D31 #31B38D
tetradic
#8D31B3 #B34C31 #57B331 #3198B3
square
#8D31B3 #B34C31 #57B331 #3198B3
split-complementary
#8D31B3 #98B331 #31B34C
monochromatic
#411753 #672483 #8D31B3 #AB52D0 #C282DD

Accessibility & contrast

On white

6.52
#8D31B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#8D31B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D31B3
6.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D31B3#FFFFFF#000000##FFFFFF
##8D31B31.006.523.226.52
#FFFFFF6.521.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B7
Deuteranopia (green-blind)
#2860B0
Tritanopia (blue-blind)
#894D6F
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8d31b3;
/* rgb */ color: rgb(141, 49, 179);
/* oklch */ color: oklch(50.7% 0.201 314.0);
Tailwind
colors: {
  custom: {
    50: '#b272ca',
    500: '#8d31b3',
    950: '#000000',
  },
}
SCSS
$custom: #8d31b3;
$custom-light: #b272ca;
$custom-dark: #000000;
JSON
{
  "hex": "#8d31b3",
  "rgb": {
    "r": 141,
    "g": 49,
    "b": 179
  },
  "hsl": {
    "h": 282.462,
    "s": 57.018,
    "l": 44.706
  },
  "oklch": {
    "l": 0.50653,
    "c": 0.20149,
    "h": 314
  },
  "luminance": 0.11114
}

Semantic roles & 50–950 ramp

primary
#8D31B3
secondary
#90C67A
accent
#E04874
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8D31B3

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

Preview Lab → · Contrast checker → · Palette generator →

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