#8E56DB#8E56DB

#8E56DB is a mid, vivid violet. Relative luminance 0.175; OKLCH L 58.1% C 0.196 H 299.7°. Best body text is #FFFFFF at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#8E56DB
RGBrgb(142, 86, 219)
HSLhsl(265, 65%, 60%)
HSVhsv(265, 61%, 86%)
CMYKcmyk(35.2%, 60.7%, 0%, 14.1%)
CIE-LABlab(48.91, 49.98, -59.83)
CIE-LCHlch(48.91, 77.96, 309.87°)
OKLaboklab(58.1% 0.0969 -0.1699)
OKLCHoklch(58.1% 0.196 299.7)
XYZxyz(27.2662, 17.5206, 68.9494)
Luminance0.1752 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E56DB #A3DB56
analogous
#5661DB #8E56DB #D056DB
triadic
#8E56DB #DB8E56 #56DB8E
tetradic
#8E56DB #DB5661 #A3DB56 #56DBD0
square
#8E56DB #DB5661 #A3DB56 #56DBD0
split-complementary
#8E56DB #DBD056 #61DB56
monochromatic
#522097 #6D2BC9 #8E56DB #B088E6 #D1BBF0

Accessibility & contrast

On white

4.66
#8E56DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.50
#8E56DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #8E56DB
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E56DB#FFFFFF#000000##FFFFFF
##8E56DB1.004.664.504.66
#FFFFFF4.661.0021.001.00
#0000004.5021.001.0021.00
##FFFFFF4.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074DF
Deuteranopia (green-blind)
#2473D8
Tritanopia (blue-blind)
#7D7390
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #8e56db;
/* rgb */ color: rgb(142, 86, 219);
/* oklch */ color: oklch(58.1% 0.196 299.7);
Tailwind
colors: {
  custom: {
    50: '#b488e7',
    500: '#8e56db',
    950: '#000000',
  },
}
SCSS
$custom: #8e56db;
$custom-light: #b488e7;
$custom-dark: #000000;
JSON
{
  "hex": "#8e56db",
  "rgb": {
    "r": 142,
    "g": 86,
    "b": 219
  },
  "hsl": {
    "h": 265.263,
    "s": 64.878,
    "l": 59.804
  },
  "oklch": {
    "l": 0.58099,
    "c": 0.19559,
    "h": 299.7
  },
  "luminance": 0.17521
}

Semantic roles & 50–950 ramp

primary
#8E56DB
secondary
#CAE0AD
accent
#E840A1
background
#FBF8FE
surface
#F6F0FC
border
#D0CBD5
text
#120C16
muted
#817D84

Preview Lab

Preview with #8E56DB

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

Preview Lab → · Contrast checker → · Palette generator →

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