#8E51DD#8E51DD

#8E51DD is a mid, highly saturated violet. Relative luminance 0.169; OKLCH L 57.5% C 0.205 H 300.0°. Best body text is #FFFFFF at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#8E51DD
RGBrgb(142, 81, 221)
HSLhsl(266, 67%, 59%)
HSVhsv(266, 63%, 87%)
CMYKcmyk(35.7%, 63.3%, 0%, 13.3%)
CIE-LABlab(48.08, 53.08, -62.31)
CIE-LCHlch(48.08, 81.85, 310.42°)
OKLaboklab(57.54% 0.1024 -0.1772)
OKLCHoklch(57.54% 0.205 300)
XYZxyz(27.1457, 16.8559, 70.2159)
Luminance0.1686 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E51DD #A0DD51
analogous
#515ADD #8E51DD #D451DD
triadic
#8E51DD #DD8E51 #51DD8E
tetradic
#8E51DD #DD515A #A0DD51 #51DDD4
square
#8E51DD #DD515A #A0DD51 #51DDD4
split-complementary
#8E51DD #DDD451 #5ADD51
monochromatic
#521D96 #6E27C9 #8E51DD #AF84E7 #D0B7F1

Accessibility & contrast

On white

4.80
#8E51DD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#8E51DD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E51DD
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E51DD#FFFFFF#000000##FFFFFF
##8E51DD1.004.804.374.80
#FFFFFF4.801.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072E1
Deuteranopia (green-blind)
#1071DA
Tritanopia (blue-blind)
#7D7090
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #8e51dd;
/* rgb */ color: rgb(142, 81, 221);
/* oklch */ color: oklch(57.5% 0.205 300.0);
Tailwind
colors: {
  custom: {
    50: '#b485e8',
    500: '#8e51dd',
    950: '#000000',
  },
}
SCSS
$custom: #8e51dd;
$custom-light: #b485e8;
$custom-dark: #000000;
JSON
{
  "hex": "#8e51dd",
  "rgb": {
    "r": 142,
    "g": 81,
    "b": 221
  },
  "hsl": {
    "h": 266.143,
    "s": 67.308,
    "l": 59.216
  },
  "oklch": {
    "l": 0.57538,
    "c": 0.20467,
    "h": 300
  },
  "luminance": 0.16856
}

Semantic roles & 50–950 ramp

primary
#8E51DD
secondary
#C8E0AA
accent
#EA3E9F
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #8E51DD

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

Preview Lab → · Contrast checker → · Palette generator →

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