#8C5AE4#8C5AE4

#8C5AE4 is a mid, highly saturated violet. Relative luminance 0.185; OKLCH L 59.1% C 0.200 H 296.4°. Best body text is #000000 at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#8C5AE4
RGBrgb(140, 90, 228)
HSLhsl(262, 72%, 62%)
HSVhsv(262, 61%, 89%)
CMYKcmyk(38.6%, 60.5%, 0%, 10.6%)
CIE-LABlab(50.08, 49.71, -63.05)
CIE-LCHlch(50.08, 80.28, 308.25°)
OKLaboklab(59.09% 0.0892 -0.1794)
OKLCHoklch(59.09% 0.2 296.4)
XYZxyz(28.4714, 18.4887, 75.4524)
Luminance0.1849 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C5AE4 #B2E45A
analogous
#5A6DE4 #8C5AE4 #D15AE4
triadic
#8C5AE4 #E48C5A #5AE48C
tetradic
#8C5AE4 #E45A6D #B2E45A #5AE4D1
square
#8C5AE4 #E45A6D #B2E45A #5AE4D1
split-complementary
#8C5AE4 #E4D15A #6DE45A
monochromatic
#4E1CA8 #6725DB #8C5AE4 #B18FED #D5C3F5

Accessibility & contrast

On white

4.47
#8C5AE4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.70
#8C5AE4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8C5AE4
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C5AE4#FFFFFF#000000##000000
##8C5AE41.004.474.704.70
#FFFFFF4.471.0021.0021.00
#0000004.7021.001.001.00
##0000004.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#0078E8
Deuteranopia (green-blind)
#1575E1
Tritanopia (blue-blind)
#767897
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #8c5ae4;
/* rgb */ color: rgb(140, 90, 228);
/* oklch */ color: oklch(59.1% 0.200 296.4);
Tailwind
colors: {
  custom: {
    50: '#b38bed',
    500: '#8c5ae4',
    950: '#000000',
  },
}
SCSS
$custom: #8c5ae4;
$custom-light: #b38bed;
$custom-dark: #000000;
JSON
{
  "hex": "#8c5ae4",
  "rgb": {
    "r": 140,
    "g": 90,
    "b": 228
  },
  "hsl": {
    "h": 261.739,
    "s": 71.875,
    "l": 62.353
  },
  "oklch": {
    "l": 0.59093,
    "c": 0.20041,
    "h": 296.4
  },
  "luminance": 0.18489
}

Semantic roles & 50–950 ramp

primary
#8C5AE4
secondary
#D4E6B4
accent
#D4128E
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #8C5AE4

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

Preview Lab → · Contrast checker → · Palette generator →

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