#8C31BD#8C31BD

#8C31BD is a mid, highly saturated violet. Relative luminance 0.114; OKLCH L 51.2% C 0.211 H 310.7°. Best body text is #FFFFFF at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#8C31BD
RGBrgb(140, 49, 189)
HSLhsl(279, 59%, 47%)
HSVhsv(279, 74%, 74%)
CMYKcmyk(25.9%, 74.1%, 0%, 25.9%)
CIE-LABlab(40.32, 59.97, -56.40)
CIE-LCHlch(40.32, 82.32, 316.76°)
OKLaboklab(51.23% 0.1372 -0.1597)
OKLCHoklch(51.23% 0.211 310.7)
XYZxyz(21.0971, 11.4467, 49.2323)
Luminance0.1145 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C31BD #62BD31
analogous
#4631BD #8C31BD #BD31A8
triadic
#8C31BD #BD8C31 #31BD8C
tetradic
#8C31BD #BD4631 #62BD31 #31A8BD
square
#8C31BD #BD4631 #62BD31 #31A8BD
split-complementary
#8C31BD #A8BD31 #31BD46
monochromatic
#44185C #68248C #8C31BD #A858D4 #C188E0

Accessibility & contrast

On white

6.38
#8C31BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#8C31BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C31BD
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C31BD#FFFFFF#000000##FFFFFF
##8C31BD1.006.383.296.38
#FFFFFF6.381.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC1
Deuteranopia (green-blind)
#1460BA
Tritanopia (blue-blind)
#855175
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8c31bd;
/* rgb */ color: rgb(140, 49, 189);
/* oklch */ color: oklch(51.2% 0.211 310.7);
Tailwind
colors: {
  custom: {
    50: '#b272d2',
    500: '#8c31bd',
    950: '#000000',
  },
}
SCSS
$custom: #8c31bd;
$custom-light: #b272d2;
$custom-dark: #000000;
JSON
{
  "hex": "#8c31bd",
  "rgb": {
    "r": 140,
    "g": 49,
    "b": 189
  },
  "hsl": {
    "h": 279,
    "s": 58.824,
    "l": 46.667
  },
  "oklch": {
    "l": 0.51233,
    "c": 0.21055,
    "h": 310.7
  },
  "luminance": 0.11446
}

Semantic roles & 50–950 ramp

primary
#8C31BD
secondary
#9ACA80
accent
#E2467C
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110814
muted
#807B83

Preview Lab

Preview with #8C31BD

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

Preview Lab → · Contrast checker → · Palette generator →

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