#8E4EE2#8E4EE2

#8E4EE2 is a mid, highly saturated violet. Relative luminance 0.167; OKLCH L 57.5% C 0.214 H 299.4°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#8E4EE2
RGBrgb(142, 78, 226)
HSLhsl(266, 72%, 60%)
HSVhsv(266, 65%, 89%)
CMYKcmyk(37.2%, 65.5%, 0%, 11.4%)
CIE-LABlab(47.87, 55.83, -65.49)
CIE-LCHlch(47.87, 86.05, 310.45°)
OKLaboklab(57.5% 0.1052 -0.1865)
OKLCHoklch(57.5% 0.214 299.4)
XYZxyz(27.6038, 16.6903, 73.7040)
Luminance0.1669 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E4EE2 #A2E24E
analogous
#4E58E2 #8E4EE2 #D84EE2
triadic
#8E4EE2 #E28E4E #4EE28E
tetradic
#8E4EE2 #E24E58 #A2E24E #4EE2D8
square
#8E4EE2 #E24E58 #A2E24E #4EE2D8
split-complementary
#8E4EE2 #E2D84E #58E24E
monochromatic
#521A9C #6E22D1 #8E4EE2 #B083EB #D1B7F3

Accessibility & contrast

On white

4.84
#8E4EE2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#8E4EE2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E4EE2
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E4EE2#FFFFFF#000000##FFFFFF
##8E4EE21.004.844.344.84
#FFFFFF4.841.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071E7
Deuteranopia (green-blind)
#0070DF
Tritanopia (blue-blind)
#7B7091
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #8e4ee2;
/* rgb */ color: rgb(142, 78, 226);
/* oklch */ color: oklch(57.5% 0.214 299.4);
Tailwind
colors: {
  custom: {
    50: '#b583ec',
    500: '#8e4ee2',
    950: '#000000',
  },
}
SCSS
$custom: #8e4ee2;
$custom-light: #b583ec;
$custom-dark: #000000;
JSON
{
  "hex": "#8e4ee2",
  "rgb": {
    "r": 142,
    "g": 78,
    "b": 226
  },
  "hsl": {
    "h": 265.946,
    "s": 71.845,
    "l": 59.608
  },
  "oklch": {
    "l": 0.57495,
    "c": 0.21416,
    "h": 299.4
  },
  "luminance": 0.16691
}

Semantic roles & 50–950 ramp

primary
#8E4EE2
secondary
#CAE3A9
accent
#EF39A0
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #8E4EE2

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

Preview Lab → · Contrast checker → · Palette generator →

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