#8A56D2#8A56D2

#8A56D2 is a mid, vivid violet. Relative luminance 0.167; OKLCH L 57.1% C 0.184 H 299.9°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#8A56D2
RGBrgb(138, 86, 210)
HSLhsl(265, 58%, 58%)
HSVhsv(265, 59%, 82%)
CMYKcmyk(34.3%, 59%, 0%, 17.6%)
CIE-LABlab(47.89, 46.82, -56.36)
CIE-LCHlch(47.89, 73.27, 309.72°)
OKLaboklab(57.08% 0.0919 -0.1598)
OKLCHoklch(57.08% 0.184 299.9)
XYZxyz(25.4391, 16.7118, 62.8457)
Luminance0.1671 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A56D2 #9ED256
analogous
#5660D2 #8A56D2 #C856D2
triadic
#8A56D2 #D28A56 #56D28A
tetradic
#8A56D2 #D25660 #9ED256 #56D2C8
square
#8A56D2 #D25660 #9ED256 #56D2C8
split-complementary
#8A56D2 #D2C856 #60D256
monochromatic
#4F2589 #6A31B9 #8A56D2 #AB86DF #CDB7EC

Accessibility & contrast

On white

4.84
#8A56D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#8A56D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A56D2
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A56D2#FFFFFF#000000##FFFFFF
##8A56D21.004.844.344.84
#FFFFFF4.841.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F71D6
Deuteranopia (green-blind)
#2D71CF
Tritanopia (blue-blind)
#7B708C
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #8a56d2;
/* rgb */ color: rgb(138, 86, 210);
/* oklch */ color: oklch(57.1% 0.184 299.9);
Tailwind
colors: {
  custom: {
    50: '#b088e0',
    500: '#8a56d2',
    950: '#000000',
  },
}
SCSS
$custom: #8a56d2;
$custom-light: #b088e0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a56d2",
  "rgb": {
    "r": 138,
    "g": 86,
    "b": 210
  },
  "hsl": {
    "h": 265.161,
    "s": 57.944,
    "l": 58.039
  },
  "oklch": {
    "l": 0.57075,
    "c": 0.1844,
    "h": 299.9
  },
  "luminance": 0.16712
}

Semantic roles & 50–950 ramp

primary
#8A56D2
secondary
#C6DBA9
accent
#E147A0
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8A56D2

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

Preview Lab → · Contrast checker → · Palette generator →

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