#8E42DE#8E42DE

#8E42DE is a mid, highly saturated violet. Relative luminance 0.149; OKLCH L 55.7% C 0.224 H 301.7°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#8E42DE
RGBrgb(142, 66, 222)
HSLhsl(269, 70%, 56%)
HSVhsv(269, 70%, 87%)
CMYKcmyk(36%, 70.3%, 0%, 12.9%)
CIE-LABlab(45.53, 60.56, -67.02)
CIE-LCHlch(45.53, 90.33, 312.10°)
OKLaboklab(55.73% 0.118 -0.191)
OKLCHoklch(55.73% 0.224 301.7)
XYZxyz(26.2852, 14.9210, 70.5883)
Luminance0.1492 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E42DE #92DE42
analogous
#4244DE #8E42DE #DC42DE
triadic
#8E42DE #DE8E42 #42DE8E
tetradic
#8E42DE #DE4244 #92DE42 #42DEDC
square
#8E42DE #DE4244 #92DE42 #42DEDC
split-complementary
#8E42DE #DEDC42 #44DE42
monochromatic
#51198D #6F22C1 #8E42DE #AD76E7 #CCAAF0

Accessibility & contrast

On white

5.27
#8E42DE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#8E42DE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E42DE
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E42DE#FFFFFF#000000##FFFFFF
##8E42DE1.005.273.985.27
#FFFFFF5.271.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BE3
Deuteranopia (green-blind)
#006BDB
Tritanopia (blue-blind)
#7D688C
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #8e42de;
/* rgb */ color: rgb(142, 66, 222);
/* oklch */ color: oklch(55.7% 0.224 301.7);
Tailwind
colors: {
  custom: {
    50: '#b57ce9',
    500: '#8e42de',
    950: '#000000',
  },
}
SCSS
$custom: #8e42de;
$custom-light: #b57ce9;
$custom-dark: #000000;
JSON
{
  "hex": "#8e42de",
  "rgb": {
    "r": 142,
    "g": 66,
    "b": 222
  },
  "hsl": {
    "h": 269.231,
    "s": 70.27,
    "l": 56.471
  },
  "oklch": {
    "l": 0.55731,
    "c": 0.22446,
    "h": 301.7
  },
  "luminance": 0.14921
}

Semantic roles & 50–950 ramp

primary
#8E42DE
secondary
#BFDE9E
accent
#ED3B96
background
#FBF7FE
surface
#F6EEFD
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #8E42DE

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

Preview Lab → · Contrast checker → · Palette generator →

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