#8A56D3#8A56D3

#8A56D3 is a mid, vivid violet. Relative luminance 0.168; OKLCH L 57.1% C 0.186 H 299.7°. Best body text is #FFFFFF at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#8A56D3
RGBrgb(138, 86, 211)
HSLhsl(265, 59%, 58%)
HSVhsv(265, 59%, 83%)
CMYKcmyk(34.6%, 59.2%, 0%, 17.3%)
CIE-LABlab(47.96, 47.07, -56.83)
CIE-LCHlch(47.96, 73.79, 309.63°)
OKLaboklab(57.14% 0.0919 -0.1612)
OKLCHoklch(57.14% 0.186 299.7)
XYZxyz(25.5640, 16.7618, 63.5039)
Luminance0.1676 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A56D3 #9FD356
analogous
#5660D3 #8A56D3 #C856D3
triadic
#8A56D3 #D38A56 #56D38A
tetradic
#8A56D3 #D35660 #9FD356 #56D3C8
square
#8A56D3 #D35660 #9FD356 #56D3C8
split-complementary
#8A56D3 #D3C856 #60D356
monochromatic
#4F248B #6A31BB #8A56D3 #AC87E0 #CDB7EC

Accessibility & contrast

On white

4.82
#8A56D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#8A56D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A56D3
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A56D3#FFFFFF#000000##FFFFFF
##8A56D31.004.824.354.82
#FFFFFF4.821.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B72D7
Deuteranopia (green-blind)
#2C71D0
Tritanopia (blue-blind)
#7A708C
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #8a56d3;
/* rgb */ color: rgb(138, 86, 211);
/* oklch */ color: oklch(57.1% 0.186 299.7);
Tailwind
colors: {
  custom: {
    50: '#b088e1',
    500: '#8a56d3',
    950: '#000000',
  },
}
SCSS
$custom: #8a56d3;
$custom-light: #b088e1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a56d3",
  "rgb": {
    "r": 138,
    "g": 86,
    "b": 211
  },
  "hsl": {
    "h": 264.96,
    "s": 58.685,
    "l": 58.235
  },
  "oklch": {
    "l": 0.57142,
    "c": 0.18558,
    "h": 299.7
  },
  "luminance": 0.16762
}

Semantic roles & 50–950 ramp

primary
#8A56D3
secondary
#C7DBAA
accent
#E246A1
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8A56D3

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

Preview Lab → · Contrast checker → · Palette generator →

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