#8C31BF#8C31BF

#8C31BF is a mid, highly saturated violet. Relative luminance 0.115; OKLCH L 51.4% C 0.212 H 310.1°. Best body text is #FFFFFF at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#8C31BF
RGBrgb(140, 49, 191)
HSLhsl(278, 59%, 47%)
HSVhsv(278, 74%, 75%)
CMYKcmyk(26.7%, 74.3%, 0%, 25.1%)
CIE-LABlab(40.47, 60.39, -57.34)
CIE-LCHlch(40.47, 83.28, 316.49°)
OKLaboklab(51.38% 0.1368 -0.1625)
OKLCHoklch(51.38% 0.212 310.1)
XYZxyz(21.3156, 11.5341, 50.3835)
Luminance0.1153 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C31BF #64BF31
analogous
#4531BF #8C31BF #BF31AB
triadic
#8C31BF #BF8C31 #31BF8C
tetradic
#8C31BF #BF4531 #64BF31 #31ABBF
square
#8C31BF #BF4531 #64BF31 #31ABBF
split-complementary
#8C31BF #ABBF31 #31BF45
monochromatic
#45185E #68258E #8C31BF #A859D4 #C28AE1

Accessibility & contrast

On white

6.35
#8C31BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#8C31BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C31BF
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C31BF#FFFFFF#000000##FFFFFF
##8C31BF1.006.353.316.35
#FFFFFF6.351.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC3
Deuteranopia (green-blind)
#0D61BC
Tritanopia (blue-blind)
#855276
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8c31bf;
/* rgb */ color: rgb(140, 49, 191);
/* oklch */ color: oklch(51.4% 0.212 310.1);
Tailwind
colors: {
  custom: {
    50: '#b272d3',
    500: '#8c31bf',
    950: '#000000',
  },
}
SCSS
$custom: #8c31bf;
$custom-light: #b272d3;
$custom-dark: #000000;
JSON
{
  "hex": "#8c31bf",
  "rgb": {
    "r": 140,
    "g": 49,
    "b": 191
  },
  "hsl": {
    "h": 278.451,
    "s": 59.167,
    "l": 47.059
  },
  "oklch": {
    "l": 0.51379,
    "c": 0.21243,
    "h": 310.1
  },
  "luminance": 0.11534
}

Semantic roles & 50–950 ramp

primary
#8C31BF
secondary
#9CCB81
accent
#E2457E
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110814
muted
#807B83

Preview Lab

Preview with #8C31BF

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

Preview Lab → · Contrast checker → · Palette generator →

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