#8A56EC#8A56EC

#8A56EC is a mid, highly saturated violet. Relative luminance 0.181; OKLCH L 58.9% C 0.215 H 294.9°. Best body text is #000000 at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#8A56EC
RGBrgb(138, 86, 236)
HSLhsl(261, 80%, 63%)
HSVhsv(261, 64%, 93%)
CMYKcmyk(41.5%, 63.6%, 0%, 7.5%)
CIE-LABlab(49.63, 53.49, -68.29)
CIE-LCHlch(49.63, 86.74, 308.07°)
OKLaboklab(58.89% 0.0904 -0.1949)
OKLCHoklch(58.89% 0.215 294.9)
XYZxyz(28.9453, 18.1143, 81.3120)
Luminance0.1812 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A56EC #B8EC56
analogous
#566DEC #8A56EC #D556EC
triadic
#8A56EC #EC8A56 #56EC8A
tetradic
#8A56EC #EC566D #B8EC56 #56ECD5
square
#8A56EC #EC566D #B8EC56 #56ECD5
split-complementary
#8A56EC #ECD556 #6DEC56
monochromatic
#4B14B3 #641FE6 #8A56EC #B08DF2 #D6C4F8

Accessibility & contrast

On white

4.54
#8A56EC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.62
#8A56EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A56EC
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A56EC#FFFFFF#000000##000000
##8A56EC1.004.544.624.62
#FFFFFF4.541.0021.0021.00
#0000004.6221.001.001.00
##0000004.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#0077F1
Deuteranopia (green-blind)
#0074E9
Tritanopia (blue-blind)
#707999
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #8a56ec;
/* rgb */ color: rgb(138, 86, 236);
/* oklch */ color: oklch(58.9% 0.215 294.9);
Tailwind
colors: {
  custom: {
    50: '#b388f3',
    500: '#8a56ec',
    950: '#000000',
  },
}
SCSS
$custom: #8a56ec;
$custom-light: #b388f3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a56ec",
  "rgb": {
    "r": 138,
    "g": 86,
    "b": 236
  },
  "hsl": {
    "h": 260.8,
    "s": 79.787,
    "l": 63.137
  },
  "oklch": {
    "l": 0.58892,
    "c": 0.21485,
    "h": 294.9
  },
  "luminance": 0.18115
}

Semantic roles & 50–950 ramp

primary
#8A56EC
secondary
#D7EAB4
accent
#DC0993
background
#FBF8FF
surface
#F6F0FE
border
#D0CBD6
text
#120C17
muted
#817D85

Preview Lab

Preview with #8A56EC

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

Preview Lab → · Contrast checker → · Palette generator →

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