#8A56E5#8A56E5

#8A56E5 is a mid, highly saturated violet. Relative luminance 0.177; OKLCH L 58.4% C 0.207 H 296.1°. Best body text is #FFFFFF at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#8A56E5
RGBrgb(138, 86, 229)
HSLhsl(262, 73%, 62%)
HSVhsv(262, 62%, 90%)
CMYKcmyk(39.7%, 62.4%, 0%, 10.2%)
CIE-LABlab(49.15, 51.67, -65.13)
CIE-LCHlch(49.15, 83.14, 308.43°)
OKLaboklab(58.39% 0.091 -0.1856)
OKLCHoklch(58.39% 0.207 296.1)
XYZxyz(27.9482, 17.7154, 76.0605)
Luminance0.1772 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A56E5 #B1E556
analogous
#566AE5 #8A56E5 #D156E5
triadic
#8A56E5 #E58A56 #56E58A
tetradic
#8A56E5 #E5566A #B1E556 #56E5D1
square
#8A56E5 #E5566A #B1E556 #56E5D1
split-complementary
#8A56E5 #E5D156 #6AE556
monochromatic
#4D1AA7 #6622DC #8A56E5 #AF8BED #D3C0F5

Accessibility & contrast

On white

4.62
#8A56E5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.54
#8A56E5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #8A56E5
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A56E5#FFFFFF#000000##FFFFFF
##8A56E51.004.624.544.62
#FFFFFF4.621.0021.001.00
#0000004.5421.001.0021.00
##FFFFFF4.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076EA
Deuteranopia (green-blind)
#0073E2
Tritanopia (blue-blind)
#737696
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #8a56e5;
/* rgb */ color: rgb(138, 86, 229);
/* oklch */ color: oklch(58.4% 0.207 296.1);
Tailwind
colors: {
  custom: {
    50: '#b288ee',
    500: '#8a56e5',
    950: '#000000',
  },
}
SCSS
$custom: #8a56e5;
$custom-light: #b288ee;
$custom-dark: #000000;
JSON
{
  "hex": "#8a56e5",
  "rgb": {
    "r": 138,
    "g": 86,
    "b": 229
  },
  "hsl": {
    "h": 261.818,
    "s": 73.333,
    "l": 61.765
  },
  "oklch": {
    "l": 0.58387,
    "c": 0.20674,
    "h": 296.1
  },
  "luminance": 0.17716
}

Semantic roles & 50–950 ramp

primary
#8A56E5
secondary
#D3E6B1
accent
#D5108E
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #8A56E5

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

Preview Lab → · Contrast checker → · Palette generator →

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