#8A56BD#8A56BD

#8A56BD is a mid, vivid violet. Relative luminance 0.157; OKLCH L 55.7% C 0.159 H 305.1°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#8A56BD
RGBrgb(138, 86, 189)
HSLhsl(270, 44%, 54%)
HSVhsv(270, 54%, 74%)
CMYKcmyk(27%, 54.5%, 0%, 25.9%)
CIE-LABlab(46.62, 41.62, -46.29)
CIE-LCHlch(46.62, 62.25, 311.96°)
OKLaboklab(55.73% 0.0916 -0.1303)
OKLCHoklch(55.73% 0.159 305.1)
XYZxyz(22.9924, 15.7331, 49.9598)
Luminance0.1573 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A56BD #89BD56
analogous
#5756BD #8A56BD #BD56BD
triadic
#8A56BD #BD8A56 #56BD8A
tetradic
#8A56BD #BD5756 #89BD56 #56BDBD
square
#8A56BD #BD5756 #89BD56 #56BDBD
split-complementary
#8A56BD #BDBD56 #56BD57
monochromatic
#4D2B6E #6B3C9A #8A56BD #A882CE #C7AEDF

Accessibility & contrast

On white

5.06
#8A56BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#8A56BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A56BD
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A56BD#FFFFFF#000000##FFFFFF
##8A56BD1.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#326DC0
Deuteranopia (green-blind)
#446FBB
Tritanopia (blue-blind)
#816981
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #8a56bd;
/* rgb */ color: rgb(138, 86, 189);
/* oklch */ color: oklch(55.7% 0.159 305.1);
Tailwind
colors: {
  custom: {
    50: '#af87d1',
    500: '#8a56bd',
    950: '#000000',
  },
}
SCSS
$custom: #8a56bd;
$custom-light: #af87d1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a56bd",
  "rgb": {
    "r": 138,
    "g": 86,
    "b": 189
  },
  "hsl": {
    "h": 270.291,
    "s": 43.83,
    "l": 53.922
  },
  "oklch": {
    "l": 0.55732,
    "c": 0.1593,
    "h": 305.1
  },
  "luminance": 0.15733
}

Semantic roles & 50–950 ramp

primary
#8A56BD
secondary
#B7CDA1
accent
#D45493
background
#FBF8FC
surface
#F6F0F9
border
#D0CBD2
text
#110B14
muted
#807C82

Preview Lab

Preview with #8A56BD

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

Preview Lab → · Contrast checker → · Palette generator →

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