#8E51DB#8E51DB

#8E51DB is a mid, highly saturated violet. Relative luminance 0.168; OKLCH L 57.4% C 0.202 H 300.5°. Best body text is #FFFFFF at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#8E51DB
RGBrgb(142, 81, 219)
HSLhsl(267, 66%, 59%)
HSVhsv(267, 63%, 86%)
CMYKcmyk(35.2%, 63%, 0%, 14.1%)
CIE-LABlab(47.94, 52.58, -61.39)
CIE-LCHlch(47.94, 80.83, 310.58°)
OKLaboklab(57.4% 0.1026 -0.1745)
OKLCHoklch(57.4% 0.202 300.5)
XYZxyz(26.8808, 16.7499, 68.8210)
Luminance0.1675 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E51DB #9EDB51
analogous
#5159DB #8E51DB #D351DB
triadic
#8E51DB #DB8E51 #51DB8E
tetradic
#8E51DB #DB5159 #9EDB51 #51DBD3
square
#8E51DB #DB5159 #9EDB51 #51DBD3
split-complementary
#8E51DB #DBD351 #59DB51
monochromatic
#521E93 #6E29C6 #8E51DB #AF84E5 #D0B6F0

Accessibility & contrast

On white

4.83
#8E51DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#8E51DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E51DB
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E51DB#FFFFFF#000000##FFFFFF
##8E51DB1.004.834.354.83
#FFFFFF4.831.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071DF
Deuteranopia (green-blind)
#1771D8
Tritanopia (blue-blind)
#7D6F8F
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #8e51db;
/* rgb */ color: rgb(142, 81, 219);
/* oklch */ color: oklch(57.4% 0.202 300.5);
Tailwind
colors: {
  custom: {
    50: '#b485e7',
    500: '#8e51db',
    950: '#000000',
  },
}
SCSS
$custom: #8e51db;
$custom-light: #b485e7;
$custom-dark: #000000;
JSON
{
  "hex": "#8e51db",
  "rgb": {
    "r": 142,
    "g": 81,
    "b": 219
  },
  "hsl": {
    "h": 266.522,
    "s": 65.714,
    "l": 58.824
  },
  "oklch": {
    "l": 0.57398,
    "c": 0.20241,
    "h": 300.5
  },
  "luminance": 0.1675
}

Semantic roles & 50–950 ramp

primary
#8E51DB
secondary
#C7DFA9
accent
#E93F9E
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #8E51DB

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

Preview Lab → · Contrast checker → · Palette generator →

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