#8C4DD7#8C4DD7

#8C4DD7 is a mid, highly saturated violet. Relative luminance 0.158; OKLCH L 56.4% C 0.203 H 301.1°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#8C4DD7
RGBrgb(140, 77, 215)
HSLhsl(267, 63%, 57%)
HSVhsv(267, 64%, 84%)
CMYKcmyk(34.9%, 64.2%, 0%, 15.7%)
CIE-LABlab(46.70, 53.21, -61.14)
CIE-LCHlch(46.70, 81.05, 311.03°)
OKLaboklab(56.36% 0.1047 -0.1738)
OKLCHoklch(56.36% 0.203 301.1)
XYZxyz(25.7319, 15.7894, 65.9688)
Luminance0.1579 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C4DD7 #98D74D
analogous
#4D53D7 #8C4DD7 #D14DD7
triadic
#8C4DD7 #D78C4D #4DD78C
tetradic
#8C4DD7 #D74D53 #98D74D #4DD7D1
square
#8C4DD7 #D74D53 #98D74D #4DD7D1
split-complementary
#8C4DD7 #D7D14D #53D74D
monochromatic
#501F8A #6D2ABC #8C4DD7 #AC7FE2 #CDB1ED

Accessibility & contrast

On white

5.05
#8C4DD7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#8C4DD7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C4DD7
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C4DD7#FFFFFF#000000##FFFFFF
##8C4DD71.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EDB
Deuteranopia (green-blind)
#106ED4
Tritanopia (blue-blind)
#7C6C8B
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #8c4dd7;
/* rgb */ color: rgb(140, 77, 215);
/* oklch */ color: oklch(56.4% 0.203 301.1);
Tailwind
colors: {
  custom: {
    50: '#b382e4',
    500: '#8c4dd7',
    950: '#000000',
  },
}
SCSS
$custom: #8c4dd7;
$custom-light: #b382e4;
$custom-dark: #000000;
JSON
{
  "hex": "#8c4dd7",
  "rgb": {
    "r": 140,
    "g": 77,
    "b": 215
  },
  "hsl": {
    "h": 267.391,
    "s": 63.303,
    "l": 57.255
  },
  "oklch": {
    "l": 0.5636,
    "c": 0.20291,
    "h": 301.1
  },
  "luminance": 0.1579
}

Semantic roles & 50–950 ramp

primary
#8C4DD7
secondary
#C2DCA4
accent
#E6419B
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #8C4DD7

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

Preview Lab → · Contrast checker → · Palette generator →

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