#8C4CD4#8C4CD4

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

Color values

HEX#8C4CD4
RGBrgb(140, 76, 212)
HSLhsl(268, 61%, 56%)
HSVhsv(268, 64%, 83%)
CMYKcmyk(34%, 64.2%, 0%, 16.9%)
CIE-LABlab(46.31, 52.98, -60.05)
CIE-LCHlch(46.31, 80.08, 311.42°)
OKLaboklab(56.02% 0.1061 -0.1706)
OKLCHoklch(56.02% 0.201 301.9)
XYZxyz(25.2805, 15.4977, 63.9341)
Luminance0.1550 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C4CD4 #94D44C
analogous
#4C50D4 #8C4CD4 #D04CD4
triadic
#8C4CD4 #D48C4C #4CD48C
tetradic
#8C4CD4 #D44C50 #94D44C #4CD4D0
square
#8C4CD4 #D44C50 #94D44C #4CD4D0
split-complementary
#8C4CD4 #D4D04C #50D44C
monochromatic
#502086 #6D2CB7 #8C4CD4 #AC7DE0 #CBAFEC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8C4CD4#FFFFFF#000000##FFFFFF
##8C4CD41.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)
#006DD8
Deuteranopia (green-blind)
#176DD1
Tritanopia (blue-blind)
#7D6A89
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #8c4cd4;
/* rgb */ color: rgb(140, 76, 212);
/* oklch */ color: oklch(56.0% 0.201 301.9);
Tailwind
colors: {
  custom: {
    50: '#b282e2',
    500: '#8c4cd4',
    950: '#000000',
  },
}
SCSS
$custom: #8c4cd4;
$custom-light: #b282e2;
$custom-dark: #000000;
JSON
{
  "hex": "#8c4cd4",
  "rgb": {
    "r": 140,
    "g": 76,
    "b": 212
  },
  "hsl": {
    "h": 268.235,
    "s": 61.261,
    "l": 56.471
  },
  "oklch": {
    "l": 0.56016,
    "c": 0.20089,
    "h": 301.9
  },
  "luminance": 0.15498
}

Semantic roles & 50–950 ramp

primary
#8C4CD4
secondary
#C0DAA2
accent
#E44399
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8C4CD4

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

Preview Lab → · Contrast checker → · Palette generator →

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