#8A56C3#8A56C3

#8A56C3 is a mid, vivid violet. Relative luminance 0.160; OKLCH L 56.1% C 0.166 H 303.5°. Best body text is #FFFFFF at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#8A56C3
RGBrgb(138, 86, 195)
HSLhsl(269, 48%, 55%)
HSVhsv(269, 56%, 76%)
CMYKcmyk(29.2%, 55.9%, 0%, 23.5%)
CIE-LABlab(46.97, 43.08, -49.21)
CIE-LCHlch(46.97, 65.40, 311.20°)
OKLaboklab(56.1% 0.0919 -0.1388)
OKLCHoklch(56.1% 0.166 303.5)
XYZxyz(23.6571, 15.9990, 53.4610)
Luminance0.1600 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A56C3 #8FC356
analogous
#5658C3 #8A56C3 #C056C3
triadic
#8A56C3 #C38A56 #56C38A
tetradic
#8A56C3 #C35658 #8FC356 #56C3C0
square
#8A56C3 #C35658 #8FC356 #56C3C0
split-complementary
#8A56C3 #C3C056 #58C356
monochromatic
#4E2A75 #6C3AA2 #8A56C3 #A983D3 #C9B0E3

Accessibility & contrast

On white

5.00
#8A56C3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#8A56C3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A56C3
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A56C3#FFFFFF#000000##FFFFFF
##8A56C31.005.004.205.00
#FFFFFF5.001.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C6EC7
Deuteranopia (green-blind)
#3F6FC0
Tritanopia (blue-blind)
#806B84
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #8a56c3;
/* rgb */ color: rgb(138, 86, 195);
/* oklch */ color: oklch(56.1% 0.166 303.5);
Tailwind
colors: {
  custom: {
    50: '#af87d6',
    500: '#8a56c3',
    950: '#000000',
  },
}
SCSS
$custom: #8a56c3;
$custom-light: #af87d6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a56c3",
  "rgb": {
    "r": 138,
    "g": 86,
    "b": 195
  },
  "hsl": {
    "h": 268.624,
    "s": 47.598,
    "l": 55.098
  },
  "oklch": {
    "l": 0.56104,
    "c": 0.16649,
    "h": 303.5
  },
  "luminance": 0.15999
}

Semantic roles & 50–950 ramp

primary
#8A56C3
secondary
#BBD1A4
accent
#D75197
background
#FBF8FD
surface
#F6F0FA
border
#D0CBD3
text
#110B14
muted
#807C83

Preview Lab

Preview with #8A56C3

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

Preview Lab → · Contrast checker → · Palette generator →

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