#8E5FEC#8E5FEC

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

Color values

HEX#8E5FEC
RGBrgb(142, 95, 236)
HSLhsl(260, 79%, 65%)
HSVhsv(260, 60%, 93%)
CMYKcmyk(39.8%, 59.7%, 0%, 7.5%)
CIE-LABlab(51.83, 49.52, -64.72)
CIE-LCHlch(51.83, 81.49, 307.42°)
OKLaboklab(60.58% 0.0858 -0.1843)
OKLCHoklch(60.58% 0.203 295)
XYZxyz(30.3839, 19.9907, 81.5984)
Luminance0.1999 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E5FEC #BDEC5F
analogous
#5F77EC #8E5FEC #D55FEC
triadic
#8E5FEC #EC8E5F #5FEC8E
tetradic
#8E5FEC #EC5F77 #BDEC5F #5FECD5
square
#8E5FEC #EC5F77 #BDEC5F #5FECD5
split-complementary
#8E5FEC #ECD55F #77EC5F
monochromatic
#4D16BA #6728E6 #8E5FEC #B596F2 #DBCCF9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8E5FEC#FFFFFF#000000##000000
##8E5FEC1.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)
#007DF1
Deuteranopia (green-blind)
#1379E9
Tritanopia (blue-blind)
#767E9D
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #8e5fec;
/* rgb */ color: rgb(142, 95, 236);
/* oklch */ color: oklch(60.6% 0.203 295.0);
Tailwind
colors: {
  custom: {
    50: '#b58ef3',
    500: '#8e5fec',
    950: '#000000',
  },
}
SCSS
$custom: #8e5fec;
$custom-light: #b58ef3;
$custom-dark: #000000;
JSON
{
  "hex": "#8e5fec",
  "rgb": {
    "r": 142,
    "g": 95,
    "b": 236
  },
  "hsl": {
    "h": 260,
    "s": 78.771,
    "l": 64.902
  },
  "oklch": {
    "l": 0.60578,
    "c": 0.20332,
    "h": 295
  },
  "luminance": 0.19991
}

Semantic roles & 50–950 ramp

primary
#8E5FEC
secondary
#DBEBBB
accent
#DB0A96
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#120C17
muted
#817D85

Preview Lab

Preview with #8E5FEC

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

Preview Lab → · Contrast checker → · Palette generator →

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