#8A56C4#8A56C4

#8A56C4 is a mid, vivid violet. Relative luminance 0.160; OKLCH L 56.2% C 0.168 H 303.2°. Best body text is #FFFFFF at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#8A56C4
RGBrgb(138, 86, 196)
HSLhsl(268, 48%, 55%)
HSVhsv(268, 56%, 77%)
CMYKcmyk(29.6%, 56.1%, 0%, 23.1%)
CIE-LABlab(47.03, 43.33, -49.69)
CIE-LCHlch(47.03, 65.93, 311.09°)
OKLaboklab(56.17% 0.0919 -0.1403)
OKLCHoklch(56.17% 0.168 303.2)
XYZxyz(23.7706, 16.0444, 54.0584)
Luminance0.1604 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A56C4 #90C456
analogous
#5659C4 #8A56C4 #C156C4
triadic
#8A56C4 #C48A56 #56C48A
tetradic
#8A56C4 #C45659 #90C456 #56C4C1
square
#8A56C4 #C45659 #90C456 #56C4C1
split-complementary
#8A56C4 #C4C156 #59C456
monochromatic
#4E2976 #6B39A4 #8A56C4 #A983D4 #C9B1E4

Accessibility & contrast

On white

4.99
#8A56C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#8A56C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A56C4
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A56C4#FFFFFF#000000##FFFFFF
##8A56C41.004.994.214.99
#FFFFFF4.991.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A6EC8
Deuteranopia (green-blind)
#3E6FC1
Tritanopia (blue-blind)
#7F6B85
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #8a56c4;
/* rgb */ color: rgb(138, 86, 196);
/* oklch */ color: oklch(56.2% 0.168 303.2);
Tailwind
colors: {
  custom: {
    50: '#af87d6',
    500: '#8a56c4',
    950: '#000000',
  },
}
SCSS
$custom: #8a56c4;
$custom-light: #af87d6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a56c4",
  "rgb": {
    "r": 138,
    "g": 86,
    "b": 196
  },
  "hsl": {
    "h": 268.364,
    "s": 48.246,
    "l": 55.294
  },
  "oklch": {
    "l": 0.56167,
    "c": 0.16769,
    "h": 303.2
  },
  "luminance": 0.16044
}

Semantic roles & 50–950 ramp

primary
#8A56C4
secondary
#BCD2A4
accent
#D85098
background
#FBF8FD
surface
#F6F0FA
border
#D0CBD3
text
#110B14
muted
#807C83

Preview Lab

Preview with #8A56C4

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

Preview Lab → · Contrast checker → · Palette generator →

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