#8E5CF5#8E5CF5

#8E5CF5 is a mid, highly saturated violet. Relative luminance 0.200; OKLCH L 60.8% C 0.218 H 294.0°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#8E5CF5
RGBrgb(142, 92, 245)
HSLhsl(260, 88%, 66%)
HSVhsv(260, 62%, 96%)
CMYKcmyk(42%, 62.4%, 0%, 3.9%)
CIE-LABlab(51.83, 53.48, -69.74)
CIE-LCHlch(51.83, 87.89, 307.48°)
OKLaboklab(60.78% 0.0885 -0.1991)
OKLCHoklch(60.78% 0.218 294)
XYZxyz(31.4595, 19.9968, 88.5707)
Luminance0.2000 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E5CF5 #C3F55C
analogous
#5C76F5 #8E5CF5 #DA5CF5
triadic
#8E5CF5 #F58E5C #5CF58E
tetradic
#8E5CF5 #F55C76 #C3F55C #5CF5DA
square
#8E5CF5 #F55C76 #C3F55C #5CF5DA
split-complementary
#8E5CF5 #F5DA5C #76F55C
monochromatic
#4A0CCA #6622F1 #8E5CF5 #B696F9 #DECFFC

Accessibility & contrast

On white

4.20
#8E5CF5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#8E5CF5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8E5CF5
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E5CF5#FFFFFF#000000##000000
##8E5CF51.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#007DFA
Deuteranopia (green-blind)
#0079F2
Tritanopia (blue-blind)
#727FA0
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #8e5cf5;
/* rgb */ color: rgb(142, 92, 245);
/* oklch */ color: oklch(60.8% 0.218 294.0);
Tailwind
colors: {
  custom: {
    50: '#b68df9',
    500: '#8e5cf5',
    950: '#000000',
  },
}
SCSS
$custom: #8e5cf5;
$custom-light: #b68df9;
$custom-dark: #000000;
JSON
{
  "hex": "#8e5cf5",
  "rgb": {
    "r": 142,
    "g": 92,
    "b": 245
  },
  "hsl": {
    "h": 259.608,
    "s": 88.439,
    "l": 66.078
  },
  "oklch": {
    "l": 0.60776,
    "c": 0.21787,
    "h": 294
  },
  "luminance": 0.19998
}

Semantic roles & 50–950 ramp

primary
#8E5CF5
secondary
#DFF0BD
accent
#E5009A
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#120C17
muted
#817D85

Preview Lab

Preview with #8E5CF5

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

Preview Lab → · Contrast checker → · Palette generator →

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