#8A56D4#8A56D4

#8A56D4 is a mid, vivid violet. Relative luminance 0.168; OKLCH L 57.2% C 0.187 H 299.5°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#8A56D4
RGBrgb(138, 86, 212)
HSLhsl(265, 59%, 58%)
HSVhsv(265, 59%, 83%)
CMYKcmyk(34.9%, 59.4%, 0%, 16.9%)
CIE-LABlab(48.02, 47.32, -57.30)
CIE-LCHlch(48.02, 74.31, 309.55°)
OKLaboklab(57.21% 0.0919 -0.1626)
OKLCHoklch(57.21% 0.187 299.5)
XYZxyz(25.6898, 16.8121, 64.1662)
Luminance0.1681 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A56D4 #A0D456
analogous
#5661D4 #8A56D4 #C956D4
triadic
#8A56D4 #D48A56 #56D48A
tetradic
#8A56D4 #D45661 #A0D456 #56D4C9
square
#8A56D4 #D45661 #A0D456 #56D4C9
split-complementary
#8A56D4 #D4C956 #61D456
monochromatic
#4F248C #6A30BD #8A56D4 #AC87E0 #CEB8ED

Accessibility & contrast

On white

4.81
#8A56D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.36
#8A56D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A56D4
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A56D4#FFFFFF#000000##FFFFFF
##8A56D41.004.814.364.81
#FFFFFF4.811.0021.001.00
#0000004.3621.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0672D8
Deuteranopia (green-blind)
#2A71D1
Tritanopia (blue-blind)
#7A718D
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #8a56d4;
/* rgb */ color: rgb(138, 86, 212);
/* oklch */ color: oklch(57.2% 0.187 299.5);
Tailwind
colors: {
  custom: {
    50: '#b188e2',
    500: '#8a56d4',
    950: '#000000',
  },
}
SCSS
$custom: #8a56d4;
$custom-light: #b188e2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a56d4",
  "rgb": {
    "r": 138,
    "g": 86,
    "b": 212
  },
  "hsl": {
    "h": 264.762,
    "s": 59.434,
    "l": 58.431
  },
  "oklch": {
    "l": 0.57209,
    "c": 0.18676,
    "h": 299.5
  },
  "luminance": 0.16812
}

Semantic roles & 50–950 ramp

primary
#8A56D4
secondary
#C7DCAA
accent
#E345A2
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8A56D4

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

Preview Lab → · Contrast checker → · Palette generator →

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