#8A56E4#8A56E4

#8A56E4 is a mid, highly saturated violet. Relative luminance 0.177; OKLCH L 58.3% C 0.206 H 296.3°. Best body text is #FFFFFF at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#8A56E4
RGBrgb(138, 86, 228)
HSLhsl(262, 72%, 62%)
HSVhsv(262, 62%, 89%)
CMYKcmyk(39.5%, 62.3%, 0%, 10.6%)
CIE-LABlab(49.08, 51.41, -64.68)
CIE-LCHlch(49.08, 82.62, 308.48°)
OKLaboklab(58.32% 0.0911 -0.1843)
OKLCHoklch(58.32% 0.206 296.3)
XYZxyz(27.8090, 17.6598, 75.3273)
Luminance0.1766 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A56E4 #B0E456
analogous
#5669E4 #8A56E4 #D156E4
triadic
#8A56E4 #E48A56 #56E48A
tetradic
#8A56E4 #E45669 #B0E456 #56E4D1
square
#8A56E4 #E45669 #B0E456 #56E4D1
split-complementary
#8A56E4 #E4D156 #69E456
monochromatic
#4D1AA5 #6623DA #8A56E4 #AF8BEC #D3C0F5

Accessibility & contrast

On white

4.63
#8A56E4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.53
#8A56E4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #8A56E4
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A56E4#FFFFFF#000000##FFFFFF
##8A56E41.004.634.534.63
#FFFFFF4.631.0021.001.00
#0000004.5321.001.0021.00
##FFFFFF4.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075E8
Deuteranopia (green-blind)
#0073E1
Tritanopia (blue-blind)
#747695
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #8a56e4;
/* rgb */ color: rgb(138, 86, 228);
/* oklch */ color: oklch(58.3% 0.206 296.3);
Tailwind
colors: {
  custom: {
    50: '#b288ed',
    500: '#8a56e4',
    950: '#000000',
  },
}
SCSS
$custom: #8a56e4;
$custom-light: #b288ed;
$custom-dark: #000000;
JSON
{
  "hex": "#8a56e4",
  "rgb": {
    "r": 138,
    "g": 86,
    "b": 228
  },
  "hsl": {
    "h": 261.972,
    "s": 72.449,
    "l": 61.569
  },
  "oklch": {
    "l": 0.58316,
    "c": 0.20556,
    "h": 296.3
  },
  "luminance": 0.1766
}

Semantic roles & 50–950 ramp

primary
#8A56E4
secondary
#D2E5B0
accent
#D5118D
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #8A56E4

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

Preview Lab → · Contrast checker → · Palette generator →

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