#8A56D9#8A56D9

#8A56D9 is a mid, vivid violet. Relative luminance 0.171; OKLCH L 57.5% C 0.193 H 298.4°. Best body text is #FFFFFF at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#8A56D9
RGBrgb(138, 86, 217)
HSLhsl(264, 63%, 59%)
HSVhsv(264, 60%, 85%)
CMYKcmyk(36.4%, 60.4%, 0%, 14.9%)
CIE-LABlab(48.35, 48.59, -59.63)
CIE-LCHlch(48.35, 76.92, 309.18°)
OKLaboklab(57.55% 0.0917 -0.1694)
OKLCHoklch(57.55% 0.193 298.4)
XYZxyz(26.3303, 17.0683, 67.5395)
Luminance0.1707 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A56D9 #A5D956
analogous
#5664D9 #8A56D9 #CC56D9
triadic
#8A56D9 #D98A56 #56D98A
tetradic
#8A56D9 #D95664 #A5D956 #56D9CC
square
#8A56D9 #D95664 #A5D956 #56D9CC
split-complementary
#8A56D9 #D9CC56 #64D956
monochromatic
#4F2193 #692CC5 #8A56D9 #AD88E4 #CFBAEF

Accessibility & contrast

On white

4.76
#8A56D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.41
#8A56D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A56D9
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A56D9#FFFFFF#000000##FFFFFF
##8A56D91.004.764.414.76
#FFFFFF4.761.0021.001.00
#0000004.4121.001.0021.00
##FFFFFF4.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073DD
Deuteranopia (green-blind)
#2171D6
Tritanopia (blue-blind)
#78728F
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #8a56d9;
/* rgb */ color: rgb(138, 86, 217);
/* oklch */ color: oklch(57.5% 0.193 298.4);
Tailwind
colors: {
  custom: {
    50: '#b188e5',
    500: '#8a56d9',
    950: '#000000',
  },
}
SCSS
$custom: #8a56d9;
$custom-light: #b188e5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a56d9",
  "rgb": {
    "r": 138,
    "g": 86,
    "b": 217
  },
  "hsl": {
    "h": 263.817,
    "s": 63.285,
    "l": 59.412
  },
  "oklch": {
    "l": 0.57548,
    "c": 0.19267,
    "h": 298.4
  },
  "luminance": 0.17069
}

Semantic roles & 50–950 ramp

primary
#8A56D9
secondary
#CBDFAC
accent
#E641A5
background
#FBF8FE
surface
#F6F0FC
border
#D0CBD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #8A56D9

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

Preview Lab → · Contrast checker → · Palette generator →

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