#8C5EE2#8C5EE2

#8C5EE2 is a mid, vivid violet. Relative luminance 0.191; OKLCH L 59.6% C 0.193 H 296.1°. Best body text is #000000 at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#8C5EE2
RGBrgb(140, 94, 226)
HSLhsl(261, 69%, 63%)
HSVhsv(261, 58%, 89%)
CMYKcmyk(38.1%, 58.4%, 0%, 11.4%)
CIE-LABlab(50.77, 47.02, -60.81)
CIE-LCHlch(50.77, 76.87, 307.71°)
OKLaboklab(59.55% 0.0847 -0.1729)
OKLCHoklch(59.55% 0.193 296.1)
XYZxyz(28.5418, 19.0713, 74.1141)
Luminance0.1907 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C5EE2 #B4E25E
analogous
#5E72E2 #8C5EE2 #CE5EE2
triadic
#8C5EE2 #E28C5E #5EE28C
tetradic
#8C5EE2 #E25E72 #B4E25E #5EE2CE
square
#8C5EE2 #E25E72 #B4E25E #5EE2CE
split-complementary
#8C5EE2 #E2CE5E #72E25E
monochromatic
#4E1EA7 #672AD9 #8C5EE2 #B192EB #D6C6F5

Accessibility & contrast

On white

4.36
#8C5EE2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.81
#8C5EE2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8C5EE2
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C5EE2#FFFFFF#000000##000000
##8C5EE21.004.364.814.81
#FFFFFF4.361.0021.0021.00
#0000004.8121.001.001.00
##0000004.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#067AE6
Deuteranopia (green-blind)
#2677DF
Tritanopia (blue-blind)
#777A97
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #8c5ee2;
/* rgb */ color: rgb(140, 94, 226);
/* oklch */ color: oklch(59.6% 0.193 296.1);
Tailwind
colors: {
  custom: {
    50: '#b38dec',
    500: '#8c5ee2',
    950: '#000000',
  },
}
SCSS
$custom: #8c5ee2;
$custom-light: #b38dec;
$custom-dark: #000000;
JSON
{
  "hex": "#8c5ee2",
  "rgb": {
    "r": 140,
    "g": 94,
    "b": 226
  },
  "hsl": {
    "h": 260.909,
    "s": 69.474,
    "l": 62.745
  },
  "oklch": {
    "l": 0.59553,
    "c": 0.19251,
    "h": 296.1
  },
  "luminance": 0.19072
}

Semantic roles & 50–950 ramp

primary
#8C5EE2
secondary
#D5E6B6
accent
#D1148F
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #8C5EE2

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

Preview Lab → · Contrast checker → · Palette generator →

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