#8C3ED7#8C3ED7

#8C3ED7 is a mid, highly saturated violet. Relative luminance 0.139; OKLCH L 54.5% C 0.221 H 302.9°. Best body text is #FFFFFF at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#8C3ED7
RGBrgb(140, 62, 215)
HSLhsl(271, 66%, 54%)
HSVhsv(271, 71%, 84%)
CMYKcmyk(34.9%, 71.2%, 0%, 15.7%)
CIE-LABlab(44.13, 60.33, -65.30)
CIE-LCHlch(44.13, 88.91, 312.74°)
OKLaboklab(54.52% 0.1203 -0.186)
OKLCHoklch(54.52% 0.221 302.9)
XYZxyz(24.8007, 13.9270, 65.6584)
Luminance0.1393 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C3ED7 #89D73E
analogous
#403ED7 #8C3ED7 #D73ED6
triadic
#8C3ED7 #D78C3E #3ED78C
tetradic
#8C3ED7 #D7403E #89D73E #3ED6D7
square
#8C3ED7 #D7403E #89D73E #3ED6D7
split-complementary
#8C3ED7 #D6D73E #3ED740
monochromatic
#4E1B80 #6D25B3 #8C3ED7 #AA71E2 #C8A3EC

Accessibility & contrast

On white

5.55
#8C3ED7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#8C3ED7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C3ED7
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C3ED7#FFFFFF#000000##FFFFFF
##8C3ED71.005.553.795.55
#FFFFFF5.551.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067DB
Deuteranopia (green-blind)
#0068D4
Tritanopia (blue-blind)
#7D6387
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8c3ed7;
/* rgb */ color: rgb(140, 62, 215);
/* oklch */ color: oklch(54.5% 0.221 302.9);
Tailwind
colors: {
  custom: {
    50: '#b37ae4',
    500: '#8c3ed7',
    950: '#000000',
  },
}
SCSS
$custom: #8c3ed7;
$custom-light: #b37ae4;
$custom-dark: #000000;
JSON
{
  "hex": "#8c3ed7",
  "rgb": {
    "r": 140,
    "g": 62,
    "b": 215
  },
  "hsl": {
    "h": 270.588,
    "s": 65.665,
    "l": 54.314
  },
  "oklch": {
    "l": 0.54522,
    "c": 0.22149,
    "h": 302.9
  },
  "luminance": 0.13927
}

Semantic roles & 50–950 ramp

primary
#8C3ED7
secondary
#B8D998
accent
#E93F92
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #8C3ED7

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

Preview Lab → · Contrast checker → · Palette generator →

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