#8C4EE3#8C4EE3

#8C4EE3 is a mid, highly saturated violet. Relative luminance 0.166; OKLCH L 57.4% C 0.215 H 298.4°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#8C4EE3
RGBrgb(140, 78, 227)
HSLhsl(265, 73%, 60%)
HSVhsv(265, 66%, 89%)
CMYKcmyk(38.3%, 65.6%, 0%, 11%)
CIE-LABlab(47.71, 55.68, -66.32)
CIE-LCHlch(47.71, 86.59, 310.02°)
OKLaboklab(57.36% 0.1024 -0.189)
OKLCHoklch(57.36% 0.215 298.4)
XYZxyz(27.4012, 16.5699, 74.4128)
Luminance0.1657 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C4EE3 #A5E34E
analogous
#4E5BE3 #8C4EE3 #D64EE3
triadic
#8C4EE3 #E38C4E #4EE38C
tetradic
#8C4EE3 #E34E5B #A5E34E #4EE3D6
square
#8C4EE3 #E34E5B #A5E34E #4EE3D6
split-complementary
#8C4EE3 #E3D64E #5BE34E
monochromatic
#50199E #6B21D3 #8C4EE3 #AE83EB #D1B8F4

Accessibility & contrast

On white

4.87
#8C4EE3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#8C4EE3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C4EE3
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C4EE3#FFFFFF#000000##FFFFFF
##8C4EE31.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071E8
Deuteranopia (green-blind)
#0070E0
Tritanopia (blue-blind)
#777192
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #8c4ee3;
/* rgb */ color: rgb(140, 78, 227);
/* oklch */ color: oklch(57.4% 0.215 298.4);
Tailwind
colors: {
  custom: {
    50: '#b483ed',
    500: '#8c4ee3',
    950: '#000000',
  },
}
SCSS
$custom: #8c4ee3;
$custom-light: #b483ed;
$custom-dark: #000000;
JSON
{
  "hex": "#8c4ee3",
  "rgb": {
    "r": 140,
    "g": 78,
    "b": 227
  },
  "hsl": {
    "h": 264.966,
    "s": 72.683,
    "l": 59.804
  },
  "oklch": {
    "l": 0.57356,
    "c": 0.21499,
    "h": 298.4
  },
  "luminance": 0.1657
}

Semantic roles & 50–950 ramp

primary
#8C4EE3
secondary
#CBE3AA
accent
#EF38A3
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #8C4EE3

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

Preview Lab → · Contrast checker → · Palette generator →

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