#8C4BD7#8C4BD7

#8C4BD7 is a mid, highly saturated violet. Relative luminance 0.155; OKLCH L 56.1% C 0.206 H 301.3°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#8C4BD7
RGBrgb(140, 75, 215)
HSLhsl(268, 64%, 57%)
HSVhsv(268, 65%, 84%)
CMYKcmyk(34.9%, 65.1%, 0%, 15.7%)
CIE-LABlab(46.33, 54.21, -61.73)
CIE-LCHlch(46.33, 82.16, 311.29°)
OKLaboklab(56.1% 0.1069 -0.1755)
OKLCHoklch(56.1% 0.206 301.3)
XYZxyz(25.5941, 15.5138, 65.9229)
Luminance0.1551 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C4BD7 #96D74B
analogous
#4B50D7 #8C4BD7 #D24BD7
triadic
#8C4BD7 #D78C4B #4BD78C
tetradic
#8C4BD7 #D74B50 #96D74B #4BD7D2
square
#8C4BD7 #D74B50 #96D74B #4BD7D2
split-complementary
#8C4BD7 #D7D24B #50D74B
monochromatic
#501E89 #6D2ABB #8C4BD7 #AC7DE2 #CCAFED

Accessibility & contrast

On white

5.12
#8C4BD7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#8C4BD7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C4BD7
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C4BD7#FFFFFF#000000##FFFFFF
##8C4BD71.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DDB
Deuteranopia (green-blind)
#066DD4
Tritanopia (blue-blind)
#7C6A8B
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #8c4bd7;
/* rgb */ color: rgb(140, 75, 215);
/* oklch */ color: oklch(56.1% 0.206 301.3);
Tailwind
colors: {
  custom: {
    50: '#b381e4',
    500: '#8c4bd7',
    950: '#000000',
  },
}
SCSS
$custom: #8c4bd7;
$custom-light: #b381e4;
$custom-dark: #000000;
JSON
{
  "hex": "#8c4bd7",
  "rgb": {
    "r": 140,
    "g": 75,
    "b": 215
  },
  "hsl": {
    "h": 267.857,
    "s": 63.636,
    "l": 56.863
  },
  "oklch": {
    "l": 0.56096,
    "c": 0.20554,
    "h": 301.3
  },
  "luminance": 0.15514
}

Semantic roles & 50–950 ramp

primary
#8C4BD7
secondary
#C1DBA2
accent
#E7419A
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #8C4BD7

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

Preview Lab → · Contrast checker → · Palette generator →

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