#8A56C2#8A56C2

#8A56C2 is a mid, vivid violet. Relative luminance 0.160; OKLCH L 56.0% C 0.165 H 303.8°. Best body text is #FFFFFF at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#8A56C2
RGBrgb(138, 86, 194)
HSLhsl(269, 47%, 55%)
HSVhsv(269, 56%, 76%)
CMYKcmyk(28.9%, 55.7%, 0%, 23.9%)
CIE-LABlab(46.91, 42.84, -48.72)
CIE-LCHlch(46.91, 64.88, 311.32°)
OKLaboklab(56.04% 0.0918 -0.1374)
OKLCHoklch(56.04% 0.165 303.8)
XYZxyz(23.5445, 15.9540, 52.8675)
Luminance0.1595 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A56C2 #8EC256
analogous
#5658C2 #8A56C2 #C056C2
triadic
#8A56C2 #C28A56 #56C28A
tetradic
#8A56C2 #C25658 #8EC256 #56C2C0
square
#8A56C2 #C25658 #8EC256 #56C2C0
split-complementary
#8A56C2 #C2C056 #58C256
monochromatic
#4D2A74 #6B3AA1 #8A56C2 #A983D2 #C8B0E2

Accessibility & contrast

On white

5.01
#8A56C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#8A56C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A56C2
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A56C2#FFFFFF#000000##FFFFFF
##8A56C21.005.014.195.01
#FFFFFF5.011.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a56c2;
/* rgb */ color: rgb(138, 86, 194);
/* oklch */ color: oklch(56.0% 0.165 303.8);
Tailwind
colors: {
  custom: {
    50: '#af87d5',
    500: '#8a56c2',
    950: '#000000',
  },
}
SCSS
$custom: #8a56c2;
$custom-light: #af87d5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a56c2",
  "rgb": {
    "r": 138,
    "g": 86,
    "b": 194
  },
  "hsl": {
    "h": 268.889,
    "s": 46.957,
    "l": 54.902
  },
  "oklch": {
    "l": 0.56041,
    "c": 0.16529,
    "h": 303.8
  },
  "luminance": 0.15954
}

Semantic roles & 50–950 ramp

primary
#8A56C2
secondary
#BBD1A3
accent
#D75196
background
#FBF8FD
surface
#F6F0FA
border
#D0CBD3
text
#110B14
muted
#807C83

Preview Lab

Preview with #8A56C2

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

Preview Lab → · Contrast checker → · Palette generator →

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