#8C4AE5#8C4AE5

#8C4AE5 is a mid, highly saturated violet. Relative luminance 0.161; OKLCH L 57.0% C 0.222 H 298.6°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#8C4AE5
RGBrgb(140, 74, 229)
HSLhsl(266, 75%, 59%)
HSVhsv(266, 68%, 90%)
CMYKcmyk(38.9%, 67.7%, 0%, 10.2%)
CIE-LABlab(47.14, 58.14, -68.37)
CIE-LCHlch(47.14, 89.75, 310.38°)
OKLaboklab(56.99% 0.1063 -0.1951)
OKLCHoklch(56.99% 0.222 298.6)
XYZxyz(27.4033, 16.1298, 75.7832)
Luminance0.1613 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C4AE5 #A3E54A
analogous
#4A56E5 #8C4AE5 #D94AE5
triadic
#8C4AE5 #E58C4A #4AE58C
tetradic
#8C4AE5 #E54A56 #A3E54A #4AE5D9
square
#8C4AE5 #E54A56 #A3E54A #4AE5D9
split-complementary
#8C4AE5 #E5D94A #56E54A
monochromatic
#50179E #6B1ED3 #8C4AE5 #AE80ED #D0B5F4

Accessibility & contrast

On white

4.97
#8C4AE5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#8C4AE5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C4AE5
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C4AE5#FFFFFF#000000##FFFFFF
##8C4AE51.004.974.234.97
#FFFFFF4.971.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070EA
Deuteranopia (green-blind)
#006EE2
Tritanopia (blue-blind)
#776F92
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #8c4ae5;
/* rgb */ color: rgb(140, 74, 229);
/* oklch */ color: oklch(57.0% 0.222 298.6);
Tailwind
colors: {
  custom: {
    50: '#b481ee',
    500: '#8c4ae5',
    950: '#000000',
  },
}
SCSS
$custom: #8c4ae5;
$custom-light: #b481ee;
$custom-dark: #000000;
JSON
{
  "hex": "#8c4ae5",
  "rgb": {
    "r": 140,
    "g": 74,
    "b": 229
  },
  "hsl": {
    "h": 265.548,
    "s": 74.879,
    "l": 59.412
  },
  "oklch": {
    "l": 0.56993,
    "c": 0.22213,
    "h": 298.6
  },
  "luminance": 0.1613
}

Semantic roles & 50–950 ramp

primary
#8C4AE5
secondary
#CAE4A7
accent
#F136A2
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #8C4AE5

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

Preview Lab → · Contrast checker → · Palette generator →

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