#8E42DD#8E42DD

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

Color values

HEX#8E42DD
RGBrgb(142, 66, 221)
HSLhsl(269, 70%, 56%)
HSVhsv(269, 70%, 87%)
CMYKcmyk(35.7%, 70.1%, 0%, 13.3%)
CIE-LABlab(45.45, 60.32, -66.57)
CIE-LCHlch(45.45, 89.83, 312.18°)
OKLaboklab(55.66% 0.1181 -0.1897)
OKLCHoklch(55.66% 0.223 301.9)
XYZxyz(26.1516, 14.8676, 69.8846)
Luminance0.1487 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E42DD #91DD42
analogous
#4244DD #8E42DD #DB42DD
triadic
#8E42DD #DD8E42 #42DD8E
tetradic
#8E42DD #DD4244 #91DD42 #42DDDB
square
#8E42DD #DD4244 #91DD42 #42DDDB
split-complementary
#8E42DD #DDDB42 #44DD42
monochromatic
#51198C #6F22BF #8E42DD #AD76E6 #CCAAF0

Accessibility & contrast

On white

5.28
#8E42DD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#8E42DD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E42DD
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E42DD#FFFFFF#000000##FFFFFF
##8E42DD1.005.283.975.28
#FFFFFF5.281.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AE2
Deuteranopia (green-blind)
#006BDA
Tritanopia (blue-blind)
#7D678B
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #8e42dd;
/* rgb */ color: rgb(142, 66, 221);
/* oklch */ color: oklch(55.7% 0.223 301.9);
Tailwind
colors: {
  custom: {
    50: '#b57ce9',
    500: '#8e42dd',
    950: '#000000',
  },
}
SCSS
$custom: #8e42dd;
$custom-light: #b57ce9;
$custom-dark: #000000;
JSON
{
  "hex": "#8e42dd",
  "rgb": {
    "r": 142,
    "g": 66,
    "b": 221
  },
  "hsl": {
    "h": 269.419,
    "s": 69.507,
    "l": 56.275
  },
  "oklch": {
    "l": 0.55655,
    "c": 0.22343,
    "h": 301.9
  },
  "luminance": 0.14868
}

Semantic roles & 50–950 ramp

primary
#8E42DD
secondary
#BEDD9D
accent
#EC3B96
background
#FBF7FE
surface
#F6EEFD
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #8E42DD

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

Preview Lab → · Contrast checker → · Palette generator →

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