#8A56BA#8A56BA

#8A56BA is a mid, vivid violet. Relative luminance 0.156; OKLCH L 55.5% C 0.156 H 306.0°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#8A56BA
RGBrgb(138, 86, 186)
HSLhsl(271, 42%, 53%)
HSVhsv(271, 54%, 73%)
CMYKcmyk(25.8%, 53.8%, 0%, 27.1%)
CIE-LABlab(46.45, 40.90, -44.82)
CIE-LCHlch(46.45, 60.67, 312.38°)
OKLaboklab(55.55% 0.0915 -0.126)
OKLCHoklch(55.55% 0.156 306)
XYZxyz(22.6701, 15.6042, 48.2625)
Luminance0.1560 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A56BA #86BA56
analogous
#5856BA #8A56BA #BA56B8
triadic
#8A56BA #BA8A56 #56BA8A
tetradic
#8A56BA #BA5856 #86BA56 #56B8BA
square
#8A56BA #BA5856 #86BA56 #56B8BA
split-complementary
#8A56BA #B8BA56 #56BA58
monochromatic
#4C2B6A #6B3D96 #8A56BA #A881CC #C6ADDD

Accessibility & contrast

On white

5.10
#8A56BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#8A56BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A56BA
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A56BA#FFFFFF#000000##FFFFFF
##8A56BA1.005.104.125.10
#FFFFFF5.101.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#356CBD
Deuteranopia (green-blind)
#466EB8
Tritanopia (blue-blind)
#826880
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #8a56ba;
/* rgb */ color: rgb(138, 86, 186);
/* oklch */ color: oklch(55.5% 0.156 306.0);
Tailwind
colors: {
  custom: {
    50: '#af87cf',
    500: '#8a56ba',
    950: '#000000',
  },
}
SCSS
$custom: #8a56ba;
$custom-light: #af87cf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a56ba",
  "rgb": {
    "r": 138,
    "g": 86,
    "b": 186
  },
  "hsl": {
    "h": 271.2,
    "s": 42.017,
    "l": 53.333
  },
  "oklch": {
    "l": 0.5555,
    "c": 0.15569,
    "h": 306
  },
  "luminance": 0.15604
}

Semantic roles & 50–950 ramp

primary
#8A56BA
secondary
#B5CBA0
accent
#D25691
background
#FBF8FC
surface
#F6F0F9
border
#D0CBD2
text
#110B14
muted
#807C82

Preview Lab

Preview with #8A56BA

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

Preview Lab → · Contrast checker → · Palette generator →

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