#8E56E2#8E56E2

#8E56E2 is a mid, highly saturated violet. Relative luminance 0.179; OKLCH L 58.6% C 0.204 H 298.3°. Best body text is #FFFFFF at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#8E56E2
RGBrgb(142, 86, 226)
HSLhsl(264, 71%, 61%)
HSVhsv(264, 62%, 89%)
CMYKcmyk(37.2%, 61.9%, 0%, 11.4%)
CIE-LABlab(49.37, 51.74, -63.06)
CIE-LCHlch(49.37, 81.57, 309.37°)
OKLaboklab(58.58% 0.0965 -0.1794)
OKLCHoklch(58.58% 0.204 298.3)
XYZxyz(28.2071, 17.8970, 73.9051)
Luminance0.1790 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E56E2 #AAE256
analogous
#5664E2 #8E56E2 #D456E2
triadic
#8E56E2 #E28E56 #56E28E
tetradic
#8E56E2 #E25664 #AAE256 #56E2D4
square
#8E56E2 #E25664 #AAE256 #56E2D4
split-complementary
#8E56E2 #E2D456 #64E256
monochromatic
#511CA2 #6C25D6 #8E56E2 #B18AEB #D4BEF4

Accessibility & contrast

On white

4.59
#8E56E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.58
#8E56E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #8E56E2
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E56E2#FFFFFF#000000##FFFFFF
##8E56E21.004.594.584.59
#FFFFFF4.591.0021.001.00
#0000004.5821.001.0021.00
##FFFFFF4.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076E6
Deuteranopia (green-blind)
#1274DF
Tritanopia (blue-blind)
#7B7594
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #8e56e2;
/* rgb */ color: rgb(142, 86, 226);
/* oklch */ color: oklch(58.6% 0.204 298.3);
Tailwind
colors: {
  custom: {
    50: '#b488ec',
    500: '#8e56e2',
    950: '#000000',
  },
}
SCSS
$custom: #8e56e2;
$custom-light: #b488ec;
$custom-dark: #000000;
JSON
{
  "hex": "#8e56e2",
  "rgb": {
    "r": 142,
    "g": 86,
    "b": 226
  },
  "hsl": {
    "h": 264,
    "s": 70.707,
    "l": 61.176
  },
  "oklch": {
    "l": 0.58581,
    "c": 0.2037,
    "h": 298.3
  },
  "luminance": 0.17897
}

Semantic roles & 50–950 ramp

primary
#8E56E2
secondary
#CFE4B0
accent
#D31386
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#120C16
muted
#817D84

Preview Lab

Preview with #8E56E2

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

Preview Lab → · Contrast checker → · Palette generator →

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