#8A56D1#8A56D1

#8A56D1 is a mid, vivid violet. Relative luminance 0.167; OKLCH L 57.0% C 0.183 H 300.1°. Best body text is #FFFFFF at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#8A56D1
RGBrgb(138, 86, 209)
HSLhsl(265, 57%, 58%)
HSVhsv(265, 59%, 82%)
CMYKcmyk(34%, 58.9%, 0%, 18%)
CIE-LABlab(47.83, 46.56, -55.89)
CIE-LCHlch(47.83, 72.74, 309.80°)
OKLaboklab(57.01% 0.092 -0.1584)
OKLCHoklch(57.01% 0.183 300.1)
XYZxyz(25.3149, 16.6621, 62.1917)
Luminance0.1666 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A56D1 #9DD156
analogous
#565FD1 #8A56D1 #C756D1
triadic
#8A56D1 #D18A56 #56D18A
tetradic
#8A56D1 #D1565F #9DD156 #56D1C7
square
#8A56D1 #D1565F #9DD156 #56D1C7
split-complementary
#8A56D1 #D1C756 #5FD156
monochromatic
#4F2588 #6B32B8 #8A56D1 #AB86DE #CDB6EB

Accessibility & contrast

On white

4.85
#8A56D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#8A56D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A56D1
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A56D1#FFFFFF#000000##FFFFFF
##8A56D11.004.854.334.85
#FFFFFF4.851.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1271D5
Deuteranopia (green-blind)
#2F71CE
Tritanopia (blue-blind)
#7B708B
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #8a56d1;
/* rgb */ color: rgb(138, 86, 209);
/* oklch */ color: oklch(57.0% 0.183 300.1);
Tailwind
colors: {
  custom: {
    50: '#b088e0',
    500: '#8a56d1',
    950: '#000000',
  },
}
SCSS
$custom: #8a56d1;
$custom-light: #b088e0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a56d1",
  "rgb": {
    "r": 138,
    "g": 86,
    "b": 209
  },
  "hsl": {
    "h": 265.366,
    "s": 57.209,
    "l": 57.843
  },
  "oklch": {
    "l": 0.57009,
    "c": 0.1832,
    "h": 300.1
  },
  "luminance": 0.16662
}

Semantic roles & 50–950 ramp

primary
#8A56D1
secondary
#C5DAA9
accent
#E047A0
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8A56D1

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

Preview Lab → · Contrast checker → · Palette generator →

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