#8A56CF#8A56CF

#8A56CF is a mid, vivid violet. Relative luminance 0.166; OKLCH L 56.9% C 0.181 H 300.6°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#8A56CF
RGBrgb(138, 86, 207)
HSLhsl(266, 56%, 57%)
HSVhsv(266, 58%, 81%)
CMYKcmyk(33.3%, 58.5%, 0%, 18.8%)
CIE-LABlab(47.71, 46.06, -54.94)
CIE-LCHlch(47.71, 71.70, 309.97°)
OKLaboklab(56.88% 0.092 -0.1557)
OKLCHoklch(56.88% 0.181 300.6)
XYZxyz(25.0688, 16.5637, 60.8958)
Luminance0.1656 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A56CF #9BCF56
analogous
#565FCF #8A56CF #C656CF
triadic
#8A56CF #CF8A56 #56CF8A
tetradic
#8A56CF #CF565F #9BCF56 #56CFC6
square
#8A56CF #CF565F #9BCF56 #56CFC6
split-complementary
#8A56CF #CFC656 #5FCF56
monochromatic
#4F2685 #6B33B5 #8A56CF #AB86DD #CCB5EA

Accessibility & contrast

On white

4.87
#8A56CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#8A56CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A56CF
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A56CF#FFFFFF#000000##FFFFFF
##8A56CF1.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1771D3
Deuteranopia (green-blind)
#3170CC
Tritanopia (blue-blind)
#7C6F8A
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #8a56cf;
/* rgb */ color: rgb(138, 86, 207);
/* oklch */ color: oklch(56.9% 0.181 300.6);
Tailwind
colors: {
  custom: {
    50: '#b088de',
    500: '#8a56cf',
    950: '#000000',
  },
}
SCSS
$custom: #8a56cf;
$custom-light: #b088de;
$custom-dark: #000000;
JSON
{
  "hex": "#8a56cf",
  "rgb": {
    "r": 138,
    "g": 86,
    "b": 207
  },
  "hsl": {
    "h": 265.785,
    "s": 55.76,
    "l": 57.451
  },
  "oklch": {
    "l": 0.56876,
    "c": 0.18082,
    "h": 300.6
  },
  "luminance": 0.16564
}

Semantic roles & 50–950 ramp

primary
#8A56CF
secondary
#C4D9A8
accent
#DF499E
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8A56CF

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

Preview Lab → · Contrast checker → · Palette generator →

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