#8D31BC#8D31BC

#8D31BC is a mid, highly saturated violet. Relative luminance 0.115; OKLCH L 51.3% C 0.210 H 311.3°. Best body text is #FFFFFF at 6.37:1 contrast (WCAG AA passes).

Color values

HEX#8D31BC
RGBrgb(141, 49, 188)
HSLhsl(280, 59%, 46%)
HSVhsv(280, 74%, 74%)
CMYKcmyk(25%, 73.9%, 0%, 26.3%)
CIE-LABlab(40.39, 59.95, -55.69)
CIE-LCHlch(40.39, 81.82, 317.11°)
OKLaboklab(51.29% 0.1386 -0.1576)
OKLCHoklch(51.29% 0.21 311.3)
XYZxyz(21.1582, 11.4907, 48.6706)
Luminance0.1149 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D31BC #60BC31
analogous
#4731BC #8D31BC #BC31A6
triadic
#8D31BC #BC8D31 #31BC8D
tetradic
#8D31BC #BC4731 #60BC31 #31A6BC
square
#8D31BC #BC4731 #60BC31 #31A6BC
split-complementary
#8D31BC #A6BC31 #31BC47
monochromatic
#44185B #69248B #8D31BC #A957D3 #C288E0

Accessibility & contrast

On white

6.37
#8D31BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#8D31BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D31BC
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D31BC#FFFFFF#000000##FFFFFF
##8D31BC1.006.373.306.37
#FFFFFF6.371.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC0
Deuteranopia (green-blind)
#1961B9
Tritanopia (blue-blind)
#875174
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8d31bc;
/* rgb */ color: rgb(141, 49, 188);
/* oklch */ color: oklch(51.3% 0.210 311.3);
Tailwind
colors: {
  custom: {
    50: '#b372d1',
    500: '#8d31bc',
    950: '#000000',
  },
}
SCSS
$custom: #8d31bc;
$custom-light: #b372d1;
$custom-dark: #000000;
JSON
{
  "hex": "#8d31bc",
  "rgb": {
    "r": 141,
    "g": 49,
    "b": 188
  },
  "hsl": {
    "h": 279.712,
    "s": 58.65,
    "l": 46.471
  },
  "oklch": {
    "l": 0.51291,
    "c": 0.2099,
    "h": 311.3
  },
  "luminance": 0.1149
}

Semantic roles & 50–950 ramp

primary
#8D31BC
secondary
#98CA7F
accent
#E2467B
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #8D31BC

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

Preview Lab → · Contrast checker → · Palette generator →

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