#8A56D8#8A56D8

#8A56D8 is a mid, vivid violet. Relative luminance 0.170; OKLCH L 57.5% C 0.192 H 298.6°. Best body text is #FFFFFF at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#8A56D8
RGBrgb(138, 86, 216)
HSLhsl(264, 63%, 59%)
HSVhsv(264, 60%, 85%)
CMYKcmyk(36.1%, 60.2%, 0%, 15.3%)
CIE-LABlab(48.28, 48.34, -59.16)
CIE-LCHlch(48.28, 76.40, 309.25°)
OKLaboklab(57.48% 0.0918 -0.1681)
OKLCHoklch(57.48% 0.192 298.6)
XYZxyz(26.2006, 17.0164, 66.8566)
Luminance0.1702 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A56D8 #A4D856
analogous
#5663D8 #8A56D8 #CB56D8
triadic
#8A56D8 #D88A56 #56D88A
tetradic
#8A56D8 #D85663 #A4D856 #56D8CB
square
#8A56D8 #D85663 #A4D856 #56D8CB
split-complementary
#8A56D8 #D8CB56 #63D856
monochromatic
#4F2292 #692DC4 #8A56D8 #AC88E3 #CFB9EF

Accessibility & contrast

On white

4.77
#8A56D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.40
#8A56D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A56D8
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A56D8#FFFFFF#000000##FFFFFF
##8A56D81.004.774.404.77
#FFFFFF4.771.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073DC
Deuteranopia (green-blind)
#2371D5
Tritanopia (blue-blind)
#78728F
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #8a56d8;
/* rgb */ color: rgb(138, 86, 216);
/* oklch */ color: oklch(57.5% 0.192 298.6);
Tailwind
colors: {
  custom: {
    50: '#b188e5',
    500: '#8a56d8',
    950: '#000000',
  },
}
SCSS
$custom: #8a56d8;
$custom-light: #b188e5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a56d8",
  "rgb": {
    "r": 138,
    "g": 86,
    "b": 216
  },
  "hsl": {
    "h": 264,
    "s": 62.5,
    "l": 59.216
  },
  "oklch": {
    "l": 0.5748,
    "c": 0.1915,
    "h": 298.6
  },
  "luminance": 0.17017
}

Semantic roles & 50–950 ramp

primary
#8A56D8
secondary
#CADEAB
accent
#E642A4
background
#FBF8FE
surface
#F6F0FC
border
#D0CBD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #8A56D8

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

Preview Lab → · Contrast checker → · Palette generator →

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