#8E5FEB#8E5FEB

#8E5FEB is a mid, highly saturated violet. Relative luminance 0.199; OKLCH L 60.5% C 0.202 H 295.1°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#8E5FEB
RGBrgb(142, 95, 235)
HSLhsl(260, 78%, 65%)
HSVhsv(260, 60%, 92%)
CMYKcmyk(39.6%, 59.6%, 0%, 7.8%)
CIE-LABlab(51.76, 49.26, -64.27)
CIE-LCHlch(51.76, 80.97, 307.47°)
OKLaboklab(60.51% 0.0859 -0.183)
OKLCHoklch(60.51% 0.202 295.1)
XYZxyz(30.2390, 19.9327, 80.8354)
Luminance0.1993 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E5FEB #BCEB5F
analogous
#5F76EB #8E5FEB #D45FEB
triadic
#8E5FEB #EB8E5F #5FEB8E
tetradic
#8E5FEB #EB5F76 #BCEB5F #5FEBD4
square
#8E5FEB #EB5F76 #BCEB5F #5FEBD4
split-complementary
#8E5FEB #EBD45F #76EB5F
monochromatic
#4D17B9 #6829E4 #8E5FEB #B495F2 #DBCCF9

Accessibility & contrast

On white

4.21
#8E5FEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#8E5FEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8E5FEB
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E5FEB#FFFFFF#000000##000000
##8E5FEB1.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#007DF0
Deuteranopia (green-blind)
#1779E8
Tritanopia (blue-blind)
#767E9C
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #8e5feb;
/* rgb */ color: rgb(142, 95, 235);
/* oklch */ color: oklch(60.5% 0.202 295.1);
Tailwind
colors: {
  custom: {
    50: '#b58ef2',
    500: '#8e5feb',
    950: '#000000',
  },
}
SCSS
$custom: #8e5feb;
$custom-light: #b58ef2;
$custom-dark: #000000;
JSON
{
  "hex": "#8e5feb",
  "rgb": {
    "r": 142,
    "g": 95,
    "b": 235
  },
  "hsl": {
    "h": 260.143,
    "s": 77.778,
    "l": 64.706
  },
  "oklch": {
    "l": 0.6051,
    "c": 0.20212,
    "h": 295.1
  },
  "luminance": 0.19933
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8E5FEB

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

Preview Lab → · Contrast checker → · Palette generator →

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