#8C3ED5#8C3ED5

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

Color values

HEX#8C3ED5
RGBrgb(140, 62, 213)
HSLhsl(271, 64%, 54%)
HSVhsv(271, 71%, 84%)
CMYKcmyk(34.3%, 70.9%, 0%, 16.5%)
CIE-LABlab(43.98, 59.87, -64.39)
CIE-LCHlch(43.98, 87.92, 312.91°)
OKLaboklab(54.37% 0.1207 -0.1833)
OKLCHoklch(54.37% 0.219 303.4)
XYZxyz(24.5453, 13.8248, 64.3132)
Luminance0.1383 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C3ED5 #87D53E
analogous
#413ED5 #8C3ED5 #D53ED3
triadic
#8C3ED5 #D58C3E #3ED58C
tetradic
#8C3ED5 #D5413E #87D53E #3ED3D5
square
#8C3ED5 #D5413E #87D53E #3ED3D5
split-complementary
#8C3ED5 #D3D53E #3ED541
monochromatic
#4E1B7D #6D26B0 #8C3ED5 #AA70E0 #C8A3EB

Accessibility & contrast

On white

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

On black

3.77
#8C3ED5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##8C3ED5#FFFFFF#000000##FFFFFF
##8C3ED51.005.583.775.58
#FFFFFF5.581.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D9
Deuteranopia (green-blind)
#0068D2
Tritanopia (blue-blind)
#7D6286
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8c3ed5;
/* rgb */ color: rgb(140, 62, 213);
/* oklch */ color: oklch(54.4% 0.219 303.4);
Tailwind
colors: {
  custom: {
    50: '#b37ae3',
    500: '#8c3ed5',
    950: '#000000',
  },
}
SCSS
$custom: #8c3ed5;
$custom-light: #b37ae3;
$custom-dark: #000000;
JSON
{
  "hex": "#8c3ed5",
  "rgb": {
    "r": 140,
    "g": 62,
    "b": 213
  },
  "hsl": {
    "h": 270.993,
    "s": 64.255,
    "l": 53.922
  },
  "oklch": {
    "l": 0.54371,
    "c": 0.21944,
    "h": 303.4
  },
  "luminance": 0.13825
}

Semantic roles & 50–950 ramp

primary
#8C3ED5
secondary
#B6D897
accent
#E74191
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #8C3ED5

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

Preview Lab → · Contrast checker → · Palette generator →

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