#8C3ED2#8C3ED2

#8C3ED2 is a mid, highly saturated violet. Relative luminance 0.137; OKLCH L 54.1% C 0.216 H 304.0°. Best body text is #FFFFFF at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#8C3ED2
RGBrgb(140, 62, 210)
HSLhsl(272, 62%, 53%)
HSVhsv(272, 70%, 82%)
CMYKcmyk(33.3%, 70.5%, 0%, 17.6%)
CIE-LABlab(43.76, 59.17, -63.02)
CIE-LCHlch(43.76, 86.45, 313.19°)
OKLaboklab(54.15% 0.1211 -0.1793)
OKLCHoklch(54.15% 0.216 304)
XYZxyz(24.1680, 13.6739, 62.3264)
Luminance0.1367 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C3ED2 #84D23E
analogous
#423ED2 #8C3ED2 #D23ECE
triadic
#8C3ED2 #D28C3E #3ED28C
tetradic
#8C3ED2 #D2423E #84D23E #3ECED2
square
#8C3ED2 #D2423E #84D23E #3ECED2
split-complementary
#8C3ED2 #CED23E #3ED242
monochromatic
#4D1C79 #6D28AB #8C3ED2 #AA70DE #C7A1E9

Accessibility & contrast

On white

5.62
#8C3ED2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#8C3ED2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C3ED2
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C3ED2#FFFFFF#000000##FFFFFF
##8C3ED21.005.623.735.62
#FFFFFF5.621.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D6
Deuteranopia (green-blind)
#0067CF
Tritanopia (blue-blind)
#7E6184
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #8c3ed2;
/* rgb */ color: rgb(140, 62, 210);
/* oklch */ color: oklch(54.1% 0.216 304.0);
Tailwind
colors: {
  custom: {
    50: '#b37ae1',
    500: '#8c3ed2',
    950: '#000000',
  },
}
SCSS
$custom: #8c3ed2;
$custom-light: #b37ae1;
$custom-dark: #000000;
JSON
{
  "hex": "#8c3ed2",
  "rgb": {
    "r": 140,
    "g": 62,
    "b": 210
  },
  "hsl": {
    "h": 271.622,
    "s": 62.185,
    "l": 53.333
  },
  "oklch": {
    "l": 0.54147,
    "c": 0.21637,
    "h": 304
  },
  "luminance": 0.13674
}

Semantic roles & 50–950 ramp

primary
#8C3ED2
secondary
#B4D696
accent
#E54390
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #8C3ED2

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

Preview Lab → · Contrast checker → · Palette generator →

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