#8A56DA#8A56DA

#8A56DA is a mid, vivid violet. Relative luminance 0.171; OKLCH L 57.6% C 0.194 H 298.2°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#8A56DA
RGBrgb(138, 86, 218)
HSLhsl(264, 64%, 60%)
HSVhsv(264, 61%, 85%)
CMYKcmyk(36.7%, 60.6%, 0%, 14.5%)
CIE-LABlab(48.41, 48.84, -60.09)
CIE-LCHlch(48.41, 77.44, 309.11°)
OKLaboklab(57.62% 0.0917 -0.1708)
OKLCHoklch(57.62% 0.194 298.2)
XYZxyz(26.4607, 17.1205, 68.2266)
Luminance0.1712 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A56DA #A6DA56
analogous
#5664DA #8A56DA #CC56DA
triadic
#8A56DA #DA8A56 #56DA8A
tetradic
#8A56DA #DA5664 #A6DA56 #56DACC
square
#8A56DA #DA5664 #A6DA56 #56DACC
split-complementary
#8A56DA #DACC56 #64DA56
monochromatic
#4E2195 #692CC7 #8A56DA #AD88E5 #D0BAF0

Accessibility & contrast

On white

4.75
#8A56DA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#8A56DA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A56DA
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A56DA#FFFFFF#000000##FFFFFF
##8A56DA1.004.754.424.75
#FFFFFF4.751.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073DE
Deuteranopia (green-blind)
#1F72D7
Tritanopia (blue-blind)
#787390
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #8a56da;
/* rgb */ color: rgb(138, 86, 218);
/* oklch */ color: oklch(57.6% 0.194 298.2);
Tailwind
colors: {
  custom: {
    50: '#b188e6',
    500: '#8a56da',
    950: '#000000',
  },
}
SCSS
$custom: #8a56da;
$custom-light: #b188e6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a56da",
  "rgb": {
    "r": 138,
    "g": 86,
    "b": 218
  },
  "hsl": {
    "h": 263.636,
    "s": 64.078,
    "l": 59.608
  },
  "oklch": {
    "l": 0.57617,
    "c": 0.19385,
    "h": 298.2
  },
  "luminance": 0.17121
}

Semantic roles & 50–950 ramp

primary
#8A56DA
secondary
#CBE0AC
accent
#E741A6
background
#FBF8FE
surface
#F6F0FC
border
#D0CBD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #8A56DA

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

Preview Lab → · Contrast checker → · Palette generator →

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