#8E42DB#8E42DB

#8E42DB is a mid, highly saturated violet. Relative luminance 0.148; OKLCH L 55.5% C 0.221 H 302.4°. Best body text is #FFFFFF at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#8E42DB
RGBrgb(142, 66, 219)
HSLhsl(270, 68%, 56%)
HSVhsv(270, 70%, 86%)
CMYKcmyk(35.2%, 69.9%, 0%, 14.1%)
CIE-LABlab(45.31, 59.85, -65.66)
CIE-LCHlch(45.31, 88.85, 312.35°)
OKLaboklab(55.51% 0.1185 -0.187)
OKLCHoklch(55.51% 0.221 302.4)
XYZxyz(25.8867, 14.7616, 68.4896)
Luminance0.1476 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E42DB #8FDB42
analogous
#4242DB #8E42DB #DA42DB
triadic
#8E42DB #DB8E42 #42DB8E
tetradic
#8E42DB #DB4242 #8FDB42 #42DBDA
square
#8E42DB #DB4242 #8FDB42 #42DBDA
split-complementary
#8E42DB #DBDA42 #42DB42
monochromatic
#511A89 #6F24BC #8E42DB #AD75E5 #CBA9EF

Accessibility & contrast

On white

5.31
#8E42DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#8E42DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E42DB
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E42DB#FFFFFF#000000##FFFFFF
##8E42DB1.005.313.955.31
#FFFFFF5.311.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ADF
Deuteranopia (green-blind)
#006BD8
Tritanopia (blue-blind)
#7E668A
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #8e42db;
/* rgb */ color: rgb(142, 66, 219);
/* oklch */ color: oklch(55.5% 0.221 302.4);
Tailwind
colors: {
  custom: {
    50: '#b57ce7',
    500: '#8e42db',
    950: '#000000',
  },
}
SCSS
$custom: #8e42db;
$custom-light: #b57ce7;
$custom-dark: #000000;
JSON
{
  "hex": "#8e42db",
  "rgb": {
    "r": 142,
    "g": 66,
    "b": 219
  },
  "hsl": {
    "h": 269.804,
    "s": 68,
    "l": 55.882
  },
  "oklch": {
    "l": 0.55505,
    "c": 0.22135,
    "h": 302.4
  },
  "luminance": 0.14762
}

Semantic roles & 50–950 ramp

primary
#8E42DB
secondary
#BDDC9D
accent
#EB3D94
background
#FBF7FE
surface
#F6EEFD
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #8E42DB

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

Preview Lab → · Contrast checker → · Palette generator →

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