#8A56BF#8A56BF

#8A56BF is a mid, vivid violet. Relative luminance 0.158; OKLCH L 55.9% C 0.162 H 304.6°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#8A56BF
RGBrgb(138, 86, 191)
HSLhsl(270, 45%, 54%)
HSVhsv(270, 55%, 75%)
CMYKcmyk(27.7%, 55%, 0%, 25.1%)
CIE-LABlab(46.74, 42.10, -47.27)
CIE-LCHlch(46.74, 63.30, 311.69°)
OKLaboklab(55.86% 0.0917 -0.1332)
OKLCHoklch(55.86% 0.162 304.6)
XYZxyz(23.2109, 15.8205, 51.1110)
Luminance0.1582 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A56BF #8BBF56
analogous
#5657BF #8A56BF #BE56BF
triadic
#8A56BF #BF8A56 #56BF8A
tetradic
#8A56BF #BF5657 #8BBF56 #56BFBE
square
#8A56BF #BF5657 #8BBF56 #56BFBE
split-complementary
#8A56BF #BFBE56 #57BF56
monochromatic
#4D2A70 #6B3B9D #8A56BF #A982D0 #C7AFE1

Accessibility & contrast

On white

5.04
#8A56BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#8A56BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A56BF
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A56BF#FFFFFF#000000##FFFFFF
##8A56BF1.005.044.165.04
#FFFFFF5.041.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#306DC3
Deuteranopia (green-blind)
#426FBC
Tritanopia (blue-blind)
#816A82
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #8a56bf;
/* rgb */ color: rgb(138, 86, 191);
/* oklch */ color: oklch(55.9% 0.162 304.6);
Tailwind
colors: {
  custom: {
    50: '#af87d3',
    500: '#8a56bf',
    950: '#000000',
  },
}
SCSS
$custom: #8a56bf;
$custom-light: #af87d3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a56bf",
  "rgb": {
    "r": 138,
    "g": 86,
    "b": 191
  },
  "hsl": {
    "h": 269.714,
    "s": 45.064,
    "l": 54.314
  },
  "oklch": {
    "l": 0.55855,
    "c": 0.1617,
    "h": 304.6
  },
  "luminance": 0.1582
}

Semantic roles & 50–950 ramp

primary
#8A56BF
secondary
#B9CFA2
accent
#D55395
background
#FBF8FD
surface
#F6F0FA
border
#D0CBD3
text
#110B14
muted
#807C83

Preview Lab

Preview with #8A56BF

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

Preview Lab → · Contrast checker → · Palette generator →

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