#8E5EF4#8E5EF4

#8E5EF4 is a mid, highly saturated violet. Relative luminance 0.203; OKLCH L 61.0% C 0.214 H 293.8°. Best body text is #000000 at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#8E5EF4
RGBrgb(142, 94, 244)
HSLhsl(259, 87%, 66%)
HSVhsv(259, 61%, 96%)
CMYKcmyk(41.8%, 61.5%, 0%, 4.3%)
CIE-LABlab(52.16, 52.16, -68.66)
CIE-LCHlch(52.16, 86.22, 307.22°)
OKLaboklab(60.99% 0.0865 -0.1959)
OKLCHoklch(60.99% 0.214 293.8)
XYZxyz(31.4828, 20.2870, 87.8274)
Luminance0.2029 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E5EF4 #C4F45E
analogous
#5E79F4 #8E5EF4 #D95EF4
triadic
#8E5EF4 #F48E5E #5EF48E
tetradic
#8E5EF4 #F45E79 #C4F45E #5EF4D9
square
#8E5EF4 #F45E79 #C4F45E #5EF4D9
split-complementary
#8E5EF4 #F4D95E #79F45E
monochromatic
#4A0ECA #6625F0 #8E5EF4 #B697F8 #DED1FC

Accessibility & contrast

On white

4.15
#8E5EF4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.06
#8E5EF4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8E5EF4
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E5EF4#FFFFFF#000000##000000
##8E5EF41.004.155.065.06
#FFFFFF4.151.0021.0021.00
#0000005.0621.001.001.00
##0000005.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#007EF9
Deuteranopia (green-blind)
#007AF1
Tritanopia (blue-blind)
#7280A0
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #8e5ef4;
/* rgb */ color: rgb(142, 94, 244);
/* oklch */ color: oklch(61.0% 0.214 293.8);
Tailwind
colors: {
  custom: {
    50: '#b68ef9',
    500: '#8e5ef4',
    950: '#000000',
  },
}
SCSS
$custom: #8e5ef4;
$custom-light: #b68ef9;
$custom-dark: #000000;
JSON
{
  "hex": "#8e5ef4",
  "rgb": {
    "r": 142,
    "g": 94,
    "b": 244
  },
  "hsl": {
    "h": 259.2,
    "s": 87.209,
    "l": 66.275
  },
  "oklch": {
    "l": 0.60991,
    "c": 0.21412,
    "h": 293.8
  },
  "luminance": 0.20288
}

Semantic roles & 50–950 ramp

primary
#8E5EF4
secondary
#E0EFBE
accent
#E4029B
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#120C17
muted
#817D85

Preview Lab

Preview with #8E5EF4

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

Preview Lab → · Contrast checker → · Palette generator →

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