#8C4EDD#8C4EDD

#8C4EDD is a mid, highly saturated violet. Relative luminance 0.162; OKLCH L 56.9% C 0.208 H 299.7°. Best body text is #FFFFFF at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#8C4EDD
RGBrgb(140, 78, 221)
HSLhsl(266, 68%, 59%)
HSVhsv(266, 65%, 87%)
CMYKcmyk(36.7%, 64.7%, 0%, 13.3%)
CIE-LABlab(47.29, 54.18, -63.59)
CIE-LCHlch(47.29, 83.55, 310.43°)
OKLaboklab(56.92% 0.1031 -0.181)
OKLCHoklch(56.92% 0.208 299.7)
XYZxyz(26.5875, 16.2444, 70.1273)
Luminance0.1625 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C4EDD #9FDD4E
analogous
#4E57DD #8C4EDD #D44EDD
triadic
#8C4EDD #DD8C4E #4EDD8C
tetradic
#8C4EDD #DD4E57 #9FDD4E #4EDDD4
square
#8C4EDD #DD4E57 #9FDD4E #4EDDD4
split-complementary
#8C4EDD #DDD44E #57DD4E
monochromatic
#501C94 #6C26C7 #8C4EDD #AD81E7 #CFB5F1

Accessibility & contrast

On white

4.94
#8C4EDD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#8C4EDD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C4EDD
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C4EDD#FFFFFF#000000##FFFFFF
##8C4EDD1.004.944.254.94
#FFFFFF4.941.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070E1
Deuteranopia (green-blind)
#006FDA
Tritanopia (blue-blind)
#7A6E8F
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #8c4edd;
/* rgb */ color: rgb(140, 78, 221);
/* oklch */ color: oklch(56.9% 0.208 299.7);
Tailwind
colors: {
  custom: {
    50: '#b383e8',
    500: '#8c4edd',
    950: '#000000',
  },
}
SCSS
$custom: #8c4edd;
$custom-light: #b383e8;
$custom-dark: #000000;
JSON
{
  "hex": "#8c4edd",
  "rgb": {
    "r": 140,
    "g": 78,
    "b": 221
  },
  "hsl": {
    "h": 266.014,
    "s": 67.773,
    "l": 58.627
  },
  "oklch": {
    "l": 0.56921,
    "c": 0.20831,
    "h": 299.7
  },
  "luminance": 0.16245
}

Semantic roles & 50–950 ramp

primary
#8C4EDD
secondary
#C7E0A7
accent
#EB3D9F
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #8C4EDD

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

Preview Lab → · Contrast checker → · Palette generator →

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