#8A56D5#8A56D5

#8A56D5 is a mid, vivid violet. Relative luminance 0.169; OKLCH L 57.3% C 0.188 H 299.3°. Best body text is #FFFFFF at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#8A56D5
RGBrgb(138, 86, 213)
HSLhsl(265, 60%, 59%)
HSVhsv(265, 60%, 84%)
CMYKcmyk(35.2%, 59.6%, 0%, 16.5%)
CIE-LABlab(48.09, 47.57, -57.76)
CIE-LCHlch(48.09, 74.83, 309.47°)
OKLaboklab(57.28% 0.0919 -0.164)
OKLCHoklch(57.28% 0.188 299.3)
XYZxyz(25.8163, 16.8627, 64.8326)
Luminance0.1686 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A56D5 #A1D556
analogous
#5661D5 #8A56D5 #C956D5
triadic
#8A56D5 #D58A56 #56D58A
tetradic
#8A56D5 #D55661 #A1D556 #56D5C9
square
#8A56D5 #D55661 #A1D556 #56D5C9
split-complementary
#8A56D5 #D5C956 #61D556
monochromatic
#4F238D #6A2FBE #8A56D5 #AC87E1 #CEB8ED

Accessibility & contrast

On white

4.80
#8A56D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#8A56D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A56D5
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A56D5#FFFFFF#000000##FFFFFF
##8A56D51.004.804.374.80
#FFFFFF4.801.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0172D9
Deuteranopia (green-blind)
#2971D2
Tritanopia (blue-blind)
#7A718D
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #8a56d5;
/* rgb */ color: rgb(138, 86, 213);
/* oklch */ color: oklch(57.3% 0.188 299.3);
Tailwind
colors: {
  custom: {
    50: '#b188e3',
    500: '#8a56d5',
    950: '#000000',
  },
}
SCSS
$custom: #8a56d5;
$custom-light: #b188e3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a56d5",
  "rgb": {
    "r": 138,
    "g": 86,
    "b": 213
  },
  "hsl": {
    "h": 264.567,
    "s": 60.19,
    "l": 58.627
  },
  "oklch": {
    "l": 0.57276,
    "c": 0.18795,
    "h": 299.3
  },
  "luminance": 0.16863
}

Semantic roles & 50–950 ramp

primary
#8A56D5
secondary
#C8DDAA
accent
#E344A2
background
#FBF8FE
surface
#F6F0FC
border
#D0CBD5
text
#110B15
muted
#807C84

Preview Lab

Preview with #8A56D5

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

Preview Lab → · Contrast checker → · Palette generator →

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