#8A56C8#8A56C8

#8A56C8 is a mid, vivid violet. Relative luminance 0.162; OKLCH L 56.4% C 0.172 H 302.2°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#8A56C8
RGBrgb(138, 86, 200)
HSLhsl(267, 51%, 56%)
HSVhsv(267, 57%, 78%)
CMYKcmyk(31%, 57%, 0%, 21.6%)
CIE-LABlab(47.27, 44.31, -51.61)
CIE-LCHlch(47.27, 68.03, 310.65°)
OKLaboklab(56.42% 0.092 -0.1459)
OKLCHoklch(56.42% 0.172 302.2)
XYZxyz(24.2319, 16.2289, 56.4883)
Luminance0.1623 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A56C8 #94C856
analogous
#565BC8 #8A56C8 #C356C8
triadic
#8A56C8 #C88A56 #56C88A
tetradic
#8A56C8 #C8565B #94C856 #56C8C3
square
#8A56C8 #C8565B #94C856 #56C8C3
split-complementary
#8A56C8 #C8C356 #5BC856
monochromatic
#4E287B #6B37AA #8A56C8 #AA84D7 #CAB2E6

Accessibility & contrast

On white

4.95
#8A56C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#8A56C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A56C8
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A56C8#FFFFFF#000000##FFFFFF
##8A56C81.004.954.254.95
#FFFFFF4.951.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#256FCC
Deuteranopia (green-blind)
#3A70C5
Tritanopia (blue-blind)
#7E6D87
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #8a56c8;
/* rgb */ color: rgb(138, 86, 200);
/* oklch */ color: oklch(56.4% 0.172 302.2);
Tailwind
colors: {
  custom: {
    50: '#b088d9',
    500: '#8a56c8',
    950: '#000000',
  },
}
SCSS
$custom: #8a56c8;
$custom-light: #b088d9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a56c8",
  "rgb": {
    "r": 138,
    "g": 86,
    "b": 200
  },
  "hsl": {
    "h": 267.368,
    "s": 50.893,
    "l": 56.078
  },
  "oklch": {
    "l": 0.56421,
    "c": 0.17248,
    "h": 302.2
  },
  "luminance": 0.16229
}

Semantic roles & 50–950 ramp

primary
#8A56C8
secondary
#BFD4A5
accent
#DA4D9A
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8A56C8

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

Preview Lab → · Contrast checker → · Palette generator →

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