#8C31CA#8C31CA

#8C31CA is a mid, highly saturated violet. Relative luminance 0.120; OKLCH L 52.2% C 0.223 H 307.2°. Best body text is #FFFFFF at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#8C31CA
RGBrgb(140, 49, 202)
HSLhsl(276, 61%, 49%)
HSVhsv(276, 76%, 79%)
CMYKcmyk(30.7%, 75.7%, 0%, 20.8%)
CIE-LABlab(41.27, 62.76, -62.44)
CIE-LCHlch(41.27, 88.53, 315.15°)
OKLaboklab(52.2% 0.1347 -0.1775)
OKLCHoklch(52.2% 0.223 307.2)
XYZxyz(22.5719, 12.0366, 56.9999)
Luminance0.1204 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C31CA #6FCA31
analogous
#3F31CA #8C31CA #CA31BC
triadic
#8C31CA #CA8C31 #31CA8C
tetradic
#8C31CA #CA3F31 #6FCA31 #31BCCA
square
#8C31CA #CA3F31 #6FCA31 #31BCCA
split-complementary
#8C31CA #BCCA31 #31CA3F
monochromatic
#481967 #6A2599 #8C31CA #A860D8 #C391E4

Accessibility & contrast

On white

6.16
#8C31CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#8C31CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C31CA
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C31CA#FFFFFF#000000##FFFFFF
##8C31CA1.006.163.416.16
#FFFFFF6.161.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ECE
Deuteranopia (green-blind)
#0062C7
Tritanopia (blue-blind)
#81577C
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8c31ca;
/* rgb */ color: rgb(140, 49, 202);
/* oklch */ color: oklch(52.2% 0.223 307.2);
Tailwind
colors: {
  custom: {
    50: '#b373db',
    500: '#8c31ca',
    950: '#000000',
  },
}
SCSS
$custom: #8c31ca;
$custom-light: #b373db;
$custom-dark: #000000;
JSON
{
  "hex": "#8c31ca",
  "rgb": {
    "r": 140,
    "g": 49,
    "b": 202
  },
  "hsl": {
    "h": 275.686,
    "s": 60.956,
    "l": 49.216
  },
  "oklch": {
    "l": 0.52203,
    "c": 0.22283,
    "h": 307.2
  },
  "luminance": 0.12036
}

Semantic roles & 50–950 ramp

primary
#8C31CA
secondary
#A5CF88
accent
#E44485
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#120915
muted
#817B83

Preview Lab

Preview with #8C31CA

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

Preview Lab → · Contrast checker → · Palette generator →

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