#8C3CD9#8C3CD9

#8C3CD9 is a mid, highly saturated violet. Relative luminance 0.138; OKLCH L 54.5% C 0.226 H 302.7°. Best body text is #FFFFFF at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#8C3CD9
RGBrgb(140, 60, 217)
HSLhsl(271, 67%, 54%)
HSVhsv(271, 72%, 85%)
CMYKcmyk(35.5%, 72.4%, 0%, 14.9%)
CIE-LABlab(43.97, 61.67, -66.70)
CIE-LCHlch(43.97, 90.84, 312.75°)
OKLaboklab(54.46% 0.1218 -0.1901)
OKLCHoklch(54.46% 0.226 302.7)
XYZxyz(24.9525, 13.8169, 66.9845)
Luminance0.1382 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C3CD9 #89D93C
analogous
#3E3CD9 #8C3CD9 #D93CD8
triadic
#8C3CD9 #D98C3C #3CD98C
tetradic
#8C3CD9 #D93E3C #89D93C #3CD8D9
square
#8C3CD9 #D93E3C #89D93C #3CD8D9
split-complementary
#8C3CD9 #D8D93C #3CD93E
monochromatic
#4E1981 #6D23B5 #8C3CD9 #AA6FE3 #C8A2ED

Accessibility & contrast

On white

5.58
#8C3CD9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#8C3CD9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C3CD9
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C3CD9#FFFFFF#000000##FFFFFF
##8C3CD91.005.583.765.58
#FFFFFF5.581.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067DE
Deuteranopia (green-blind)
#0067D6
Tritanopia (blue-blind)
#7C6387
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8c3cd9;
/* rgb */ color: rgb(140, 60, 217);
/* oklch */ color: oklch(54.5% 0.226 302.7);
Tailwind
colors: {
  custom: {
    50: '#b479e6',
    500: '#8c3cd9',
    950: '#000000',
  },
}
SCSS
$custom: #8c3cd9;
$custom-light: #b479e6;
$custom-dark: #000000;
JSON
{
  "hex": "#8c3cd9",
  "rgb": {
    "r": 140,
    "g": 60,
    "b": 217
  },
  "hsl": {
    "h": 270.573,
    "s": 67.382,
    "l": 54.314
  },
  "oklch": {
    "l": 0.54456,
    "c": 0.22577,
    "h": 302.7
  },
  "luminance": 0.13817
}

Semantic roles & 50–950 ramp

primary
#8C3CD9
secondary
#B8DA97
accent
#EA3E92
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#120916
muted
#817B84

Preview Lab

Preview with #8C3CD9

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

Preview Lab → · Contrast checker → · Palette generator →

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