#8C4AE7#8C4AE7

#8C4AE7 is a mid, highly saturated violet. Relative luminance 0.162; OKLCH L 57.1% C 0.224 H 298.2°. Best body text is #FFFFFF at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#8C4AE7
RGBrgb(140, 74, 231)
HSLhsl(265, 77%, 60%)
HSVhsv(265, 68%, 91%)
CMYKcmyk(39.4%, 68%, 0%, 9.4%)
CIE-LABlab(47.29, 58.63, -69.27)
CIE-LCHlch(47.29, 90.75, 310.25°)
OKLaboklab(57.14% 0.106 -0.1977)
OKLCHoklch(57.14% 0.224 298.2)
XYZxyz(27.6841, 16.2421, 77.2623)
Luminance0.1624 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C4AE7 #A5E74A
analogous
#4A57E7 #8C4AE7 #DA4AE7
triadic
#8C4AE7 #E78C4A #4AE78C
tetradic
#8C4AE7 #E74A57 #A5E74A #4AE7DA
square
#8C4AE7 #E74A57 #A5E74A #4AE7DA
split-complementary
#8C4AE7 #E7DA4A #57E74A
monochromatic
#5015A1 #6B1DD7 #8C4AE7 #AE80EE #D1B6F5

Accessibility & contrast

On white

4.94
#8C4AE7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#8C4AE7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C4AE7
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C4AE7#FFFFFF#000000##FFFFFF
##8C4AE71.004.944.254.94
#FFFFFF4.941.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070EC
Deuteranopia (green-blind)
#006EE4
Tritanopia (blue-blind)
#767093
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #8c4ae7;
/* rgb */ color: rgb(140, 74, 231);
/* oklch */ color: oklch(57.1% 0.224 298.2);
Tailwind
colors: {
  custom: {
    50: '#b481f0',
    500: '#8c4ae7',
    950: '#000000',
  },
}
SCSS
$custom: #8c4ae7;
$custom-light: #b481f0;
$custom-dark: #000000;
JSON
{
  "hex": "#8c4ae7",
  "rgb": {
    "r": 140,
    "g": 74,
    "b": 231
  },
  "hsl": {
    "h": 265.223,
    "s": 76.585,
    "l": 59.804
  },
  "oklch": {
    "l": 0.57143,
    "c": 0.2243,
    "h": 298.2
  },
  "luminance": 0.16243
}

Semantic roles & 50–950 ramp

primary
#8C4AE7
secondary
#CBE5A8
accent
#F335A3
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#120B17
muted
#817C85

Preview Lab

Preview with #8C4AE7

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

Preview Lab → · Contrast checker → · Palette generator →

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