#8C31BB#8C31BB

#8C31BB is a mid, highly saturated violet. Relative luminance 0.114; OKLCH L 51.1% C 0.209 H 311.2°. Best body text is #FFFFFF at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#8C31BB
RGBrgb(140, 49, 187)
HSLhsl(280, 58%, 46%)
HSVhsv(280, 74%, 73%)
CMYKcmyk(25.1%, 73.8%, 0%, 26.7%)
CIE-LABlab(40.18, 59.54, -55.45)
CIE-LCHlch(40.18, 81.37, 317.04°)
OKLaboklab(51.09% 0.1375 -0.1569)
OKLCHoklch(51.09% 0.209 311.2)
XYZxyz(20.8815, 11.3605, 48.0969)
Luminance0.1136 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C31BB #60BB31
analogous
#4731BB #8C31BB #BB31A5
triadic
#8C31BB #BB8C31 #31BB8C
tetradic
#8C31BB #BB4731 #60BB31 #31A5BB
square
#8C31BB #BB4731 #60BB31 #31A5BB
split-complementary
#8C31BB #A5BB31 #31BB47
monochromatic
#43185A #68248B #8C31BB #A856D3 #C187E0

Accessibility & contrast

On white

6.42
#8C31BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#8C31BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C31BB
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C31BB#FFFFFF#000000##FFFFFF
##8C31BB1.006.423.276.42
#FFFFFF6.421.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BBF
Deuteranopia (green-blind)
#1960B8
Tritanopia (blue-blind)
#865174
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8c31bb;
/* rgb */ color: rgb(140, 49, 187);
/* oklch */ color: oklch(51.1% 0.209 311.2);
Tailwind
colors: {
  custom: {
    50: '#b272d0',
    500: '#8c31bb',
    950: '#000000',
  },
}
SCSS
$custom: #8c31bb;
$custom-light: #b272d0;
$custom-dark: #000000;
JSON
{
  "hex": "#8c31bb",
  "rgb": {
    "r": 140,
    "g": 49,
    "b": 187
  },
  "hsl": {
    "h": 279.565,
    "s": 58.475,
    "l": 46.275
  },
  "oklch": {
    "l": 0.51087,
    "c": 0.20866,
    "h": 311.2
  },
  "luminance": 0.1136
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8C31BB

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

Preview Lab → · Contrast checker → · Palette generator →

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