#8C5BCA#8C5BCA

#8C5BCA is a mid, vivid violet. Relative luminance 0.173; OKLCH L 57.5% C 0.168 H 301.7°. Best body text is #FFFFFF at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#8C5BCA
RGBrgb(140, 91, 202)
HSLhsl(266, 51%, 57%)
HSVhsv(266, 55%, 79%)
CMYKcmyk(30.7%, 55%, 0%, 20.8%)
CIE-LABlab(48.66, 42.55, -50.53)
CIE-LCHlch(48.66, 66.06, 310.10°)
OKLaboklab(57.53% 0.0882 -0.1427)
OKLCHoklch(57.53% 0.168 301.7)
XYZxyz(25.2145, 17.3218, 57.8807)
Luminance0.1732 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C5BCA #99CA5B
analogous
#5B62CA #8C5BCA #C35BCA
triadic
#8C5BCA #CA8C5B #5BCA8C
tetradic
#8C5BCA #CA5B62 #99CA5B #5BCAC3
square
#8C5BCA #CA5B62 #99CA5B #5BCAC3
split-complementary
#8C5BCA #CAC35B #62CA5B
monochromatic
#502A81 #6D39AF #8C5BCA #AC89D9 #CDB8E8

Accessibility & contrast

On white

4.70
#8C5BCA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#8C5BCA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C5BCA
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C5BCA#FFFFFF#000000##FFFFFF
##8C5BCA1.004.704.464.70
#FFFFFF4.701.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3073CE
Deuteranopia (green-blind)
#4073C7
Tritanopia (blue-blind)
#80718A
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #8c5bca;
/* rgb */ color: rgb(140, 91, 202);
/* oklch */ color: oklch(57.5% 0.168 301.7);
Tailwind
colors: {
  custom: {
    50: '#b18bdb',
    500: '#8c5bca',
    950: '#000000',
  },
}
SCSS
$custom: #8c5bca;
$custom-light: #b18bdb;
$custom-dark: #000000;
JSON
{
  "hex": "#8c5bca",
  "rgb": {
    "r": 140,
    "g": 91,
    "b": 202
  },
  "hsl": {
    "h": 266.486,
    "s": 51.152,
    "l": 57.451
  },
  "oklch": {
    "l": 0.57531,
    "c": 0.16775,
    "h": 301.7
  },
  "luminance": 0.17322
}

Semantic roles & 50–950 ramp

primary
#8C5BCA
secondary
#C3D7AA
accent
#DB4D9C
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#110C15
muted
#807D83

Preview Lab

Preview with #8C5BCA

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

Preview Lab → · Contrast checker → · Palette generator →

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