#8C4EE2#8C4EE2

#8C4EE2 is a mid, highly saturated violet. Relative luminance 0.165; OKLCH L 57.3% C 0.214 H 298.6°. Best body text is #FFFFFF at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#8C4EE2
RGBrgb(140, 78, 226)
HSLhsl(265, 72%, 60%)
HSVhsv(265, 65%, 89%)
CMYKcmyk(38.1%, 65.5%, 0%, 11.4%)
CIE-LABlab(47.64, 55.43, -65.86)
CIE-LCHlch(47.64, 86.08, 310.08°)
OKLaboklab(57.28% 0.1025 -0.1877)
OKLCHoklch(57.28% 0.214 298.6)
XYZxyz(27.2636, 16.5149, 73.6881)
Luminance0.1651 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C4EE2 #A4E24E
analogous
#4E5AE2 #8C4EE2 #D64EE2
triadic
#8C4EE2 #E28C4E #4EE28C
tetradic
#8C4EE2 #E24E5A #A4E24E #4EE2D6
square
#8C4EE2 #E24E5A #A4E24E #4EE2D6
split-complementary
#8C4EE2 #E2D64E #5AE24E
monochromatic
#501A9C #6B22D1 #8C4EE2 #AE83EB #D0B7F3

Accessibility & contrast

On white

4.88
#8C4EE2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.30
#8C4EE2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C4EE2
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C4EE2#FFFFFF#000000##FFFFFF
##8C4EE21.004.884.304.88
#FFFFFF4.881.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071E7
Deuteranopia (green-blind)
#0070DF
Tritanopia (blue-blind)
#787091
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #8c4ee2;
/* rgb */ color: rgb(140, 78, 226);
/* oklch */ color: oklch(57.3% 0.214 298.6);
Tailwind
colors: {
  custom: {
    50: '#b383ec',
    500: '#8c4ee2',
    950: '#000000',
  },
}
SCSS
$custom: #8c4ee2;
$custom-light: #b383ec;
$custom-dark: #000000;
JSON
{
  "hex": "#8c4ee2",
  "rgb": {
    "r": 140,
    "g": 78,
    "b": 226
  },
  "hsl": {
    "h": 265.135,
    "s": 71.845,
    "l": 59.608
  },
  "oklch": {
    "l": 0.57283,
    "c": 0.21388,
    "h": 298.6
  },
  "luminance": 0.16515
}

Semantic roles & 50–950 ramp

primary
#8C4EE2
secondary
#CBE3A9
accent
#EF39A3
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #8C4EE2

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

Preview Lab → · Contrast checker → · Palette generator →

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