#8A56DC#8A56DC

#8A56DC is a mid, vivid violet. Relative luminance 0.172; OKLCH L 57.8% C 0.196 H 297.8°. Best body text is #FFFFFF at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#8A56DC
RGBrgb(138, 86, 220)
HSLhsl(263, 66%, 60%)
HSVhsv(263, 61%, 86%)
CMYKcmyk(37.3%, 60.9%, 0%, 13.7%)
CIE-LABlab(48.54, 49.36, -61.01)
CIE-LCHlch(48.54, 78.48, 308.97°)
OKLaboklab(57.76% 0.0916 -0.1735)
OKLCHoklch(57.76% 0.196 297.8)
XYZxyz(26.7240, 17.2258, 69.6132)
Luminance0.1723 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A56DC #A8DC56
analogous
#5665DC #8A56DC #CD56DC
triadic
#8A56DC #DC8A56 #56DC8A
tetradic
#8A56DC #DC5665 #A8DC56 #56DCCD
square
#8A56DC #DC5665 #A8DC56 #56DCCD
split-complementary
#8A56DC #DCCD56 #65DC56
monochromatic
#4E2098 #682ACB #8A56DC #AD89E6 #D0BBF1

Accessibility & contrast

On white

4.72
#8A56DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.45
#8A56DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A56DC
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A56DC#FFFFFF#000000##FFFFFF
##8A56DC1.004.724.454.72
#FFFFFF4.721.0021.001.00
#0000004.4521.001.0021.00
##FFFFFF4.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074E0
Deuteranopia (green-blind)
#1A72D9
Tritanopia (blue-blind)
#777391
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #8a56dc;
/* rgb */ color: rgb(138, 86, 220);
/* oklch */ color: oklch(57.8% 0.196 297.8);
Tailwind
colors: {
  custom: {
    50: '#b188e8',
    500: '#8a56dc',
    950: '#000000',
  },
}
SCSS
$custom: #8a56dc;
$custom-light: #b188e8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a56dc",
  "rgb": {
    "r": 138,
    "g": 86,
    "b": 220
  },
  "hsl": {
    "h": 263.284,
    "s": 65.686,
    "l": 60
  },
  "oklch": {
    "l": 0.57755,
    "c": 0.1962,
    "h": 297.8
  },
  "luminance": 0.17226
}

Semantic roles & 50–950 ramp

primary
#8A56DC
secondary
#CDE1AD
accent
#E93FA7
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #8A56DC

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

Preview Lab → · Contrast checker → · Palette generator →

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