#8C4CD8#8C4CD8

#8C4CD8 is a mid, highly saturated violet. Relative luminance 0.157; OKLCH L 56.3% C 0.205 H 301.0°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#8C4CD8
RGBrgb(140, 76, 216)
HSLhsl(267, 64%, 57%)
HSVhsv(267, 65%, 85%)
CMYKcmyk(35.2%, 64.8%, 0%, 15.3%)
CIE-LABlab(46.58, 53.96, -61.90)
CIE-LCHlch(46.58, 82.11, 311.08°)
OKLaboklab(56.3% 0.1057 -0.176)
OKLCHoklch(56.3% 0.205 301)
XYZxyz(25.7913, 15.7020, 66.6244)
Luminance0.1570 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C4CD8 #98D84C
analogous
#4C52D8 #8C4CD8 #D24CD8
triadic
#8C4CD8 #D88C4C #4CD88C
tetradic
#8C4CD8 #D84C52 #98D84C #4CD8D2
square
#8C4CD8 #D84C52 #98D84C #4CD8D2
split-complementary
#8C4CD8 #D8D24C #52D84C
monochromatic
#501E8B #6D29BE #8C4CD8 #AC7EE3 #CDB1EE

Accessibility & contrast

On white

5.07
#8C4CD8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#8C4CD8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C4CD8
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C4CD8#FFFFFF#000000##FFFFFF
##8C4CD81.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EDC
Deuteranopia (green-blind)
#076ED5
Tritanopia (blue-blind)
#7C6B8B
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #8c4cd8;
/* rgb */ color: rgb(140, 76, 216);
/* oklch */ color: oklch(56.3% 0.205 301.0);
Tailwind
colors: {
  custom: {
    50: '#b382e5',
    500: '#8c4cd8',
    950: '#000000',
  },
}
SCSS
$custom: #8c4cd8;
$custom-light: #b382e5;
$custom-dark: #000000;
JSON
{
  "hex": "#8c4cd8",
  "rgb": {
    "r": 140,
    "g": 76,
    "b": 216
  },
  "hsl": {
    "h": 267.429,
    "s": 64.22,
    "l": 57.255
  },
  "oklch": {
    "l": 0.56299,
    "c": 0.20533,
    "h": 301
  },
  "luminance": 0.15702
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8C4CD8

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

Preview Lab → · Contrast checker → · Palette generator →

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