#8C3CD5#8C3CD5

#8C3CD5 is a mid, highly saturated violet. Relative luminance 0.136; OKLCH L 54.2% C 0.222 H 303.6°. Best body text is #FFFFFF at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#8C3CD5
RGBrgb(140, 60, 213)
HSLhsl(271, 65%, 54%)
HSVhsv(271, 72%, 84%)
CMYKcmyk(34.3%, 71.8%, 0%, 16.5%)
CIE-LABlab(43.67, 60.74, -64.90)
CIE-LCHlch(43.67, 88.89, 313.11°)
OKLaboklab(54.15% 0.1226 -0.1848)
OKLCHoklch(54.15% 0.222 303.6)
XYZxyz(24.4385, 13.6113, 64.2776)
Luminance0.1361 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C3CD5 #85D53C
analogous
#3F3CD5 #8C3CD5 #D53CD1
triadic
#8C3CD5 #D58C3C #3CD58C
tetradic
#8C3CD5 #D53F3C #85D53C #3CD1D5
square
#8C3CD5 #D53F3C #85D53C #3CD1D5
split-complementary
#8C3CD5 #D1D53C #3CD53F
monochromatic
#4E1B7C #6D26AE #8C3CD5 #AA6EE0 #C7A1EB

Accessibility & contrast

On white

5.64
#8C3CD5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#8C3CD5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C3CD5
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C3CD5#FFFFFF#000000##FFFFFF
##8C3CD51.005.643.725.64
#FFFFFF5.641.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D9
Deuteranopia (green-blind)
#0067D2
Tritanopia (blue-blind)
#7D6185
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #8c3cd5;
/* rgb */ color: rgb(140, 60, 213);
/* oklch */ color: oklch(54.2% 0.222 303.6);
Tailwind
colors: {
  custom: {
    50: '#b379e3',
    500: '#8c3cd5',
    950: '#000000',
  },
}
SCSS
$custom: #8c3cd5;
$custom-light: #b379e3;
$custom-dark: #000000;
JSON
{
  "hex": "#8c3cd5",
  "rgb": {
    "r": 140,
    "g": 60,
    "b": 213
  },
  "hsl": {
    "h": 271.373,
    "s": 64.557,
    "l": 53.529
  },
  "oklch": {
    "l": 0.54151,
    "c": 0.22173,
    "h": 303.6
  },
  "luminance": 0.13611
}

Semantic roles & 50–950 ramp

primary
#8C3CD5
secondary
#B5D796
accent
#E84090
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#120916
muted
#817B84

Preview Lab

Preview with #8C3CD5

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

Preview Lab → · Contrast checker → · Palette generator →

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