#8C31BE#8C31BE

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

Color values

HEX#8C31BE
RGBrgb(140, 49, 190)
HSLhsl(279, 59%, 47%)
HSVhsv(279, 74%, 75%)
CMYKcmyk(26.3%, 74.2%, 0%, 25.5%)
CIE-LABlab(40.39, 60.18, -56.87)
CIE-LCHlch(40.39, 82.80, 316.62°)
OKLaboklab(51.31% 0.137 -0.1611)
OKLCHoklch(51.31% 0.211 310.4)
XYZxyz(21.2060, 11.4903, 49.8059)
Luminance0.1149 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C31BE #63BE31
analogous
#4531BE #8C31BE #BE31AA
triadic
#8C31BE #BE8C31 #31BE8C
tetradic
#8C31BE #BE4531 #63BE31 #31AABE
square
#8C31BE #BE4531 #63BE31 #31AABE
split-complementary
#8C31BE #AABE31 #31BE45
monochromatic
#44185D #68248D #8C31BE #A858D4 #C189E1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8C31BE#FFFFFF#000000##FFFFFF
##8C31BE1.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)
#005BC2
Deuteranopia (green-blind)
#1061BB
Tritanopia (blue-blind)
#855275
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8c31be;
/* rgb */ color: rgb(140, 49, 190);
/* oklch */ color: oklch(51.3% 0.211 310.4);
Tailwind
colors: {
  custom: {
    50: '#b272d2',
    500: '#8c31be',
    950: '#000000',
  },
}
SCSS
$custom: #8c31be;
$custom-light: #b272d2;
$custom-dark: #000000;
JSON
{
  "hex": "#8c31be",
  "rgb": {
    "r": 140,
    "g": 49,
    "b": 190
  },
  "hsl": {
    "h": 278.723,
    "s": 58.996,
    "l": 46.863
  },
  "oklch": {
    "l": 0.51306,
    "c": 0.21149,
    "h": 310.4
  },
  "luminance": 0.1149
}

Semantic roles & 50–950 ramp

primary
#8C31BE
secondary
#9BCA80
accent
#E2467D
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110814
muted
#807B83

Preview Lab

Preview with #8C31BE

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

Preview Lab → · Contrast checker → · Palette generator →

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