#8A56B4#8A56B4

#8A56B4 is a mid, vivid violet. Relative luminance 0.154; OKLCH L 55.2% C 0.148 H 307.8°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#8A56B4
RGBrgb(138, 86, 180)
HSLhsl(273, 39%, 52%)
HSVhsv(273, 52%, 71%)
CMYKcmyk(23.3%, 52.2%, 0%, 29.4%)
CIE-LABlab(46.12, 39.47, -41.85)
CIE-LCHlch(46.12, 57.52, 313.32°)
OKLaboklab(55.19% 0.091 -0.1173)
OKLCHoklch(55.19% 0.149 307.8)
XYZxyz(22.0456, 15.3544, 44.9735)
Luminance0.1535 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A56B4 #80B456
analogous
#5B56B4 #8A56B4 #B456AF
triadic
#8A56B4 #B48A56 #56B48A
tetradic
#8A56B4 #B45B56 #80B456 #56AFB4
square
#8A56B4 #B45B56 #80B456 #56AFB4
split-complementary
#8A56B4 #AFB456 #56B45B
monochromatic
#4B2C63 #6B3F8E #8A56B4 #A780C7 #C5ABDA

Accessibility & contrast

On white

5.16
#8A56B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#8A56B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A56B4
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A56B4#FFFFFF#000000##FFFFFF
##8A56B41.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B6BB7
Deuteranopia (green-blind)
#4A6EB2
Tritanopia (blue-blind)
#84667D
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #8a56b4;
/* rgb */ color: rgb(138, 86, 180);
/* oklch */ color: oklch(55.2% 0.148 307.8);
Tailwind
colors: {
  custom: {
    50: '#ae87cb',
    500: '#8a56b4',
    950: '#000000',
  },
}
SCSS
$custom: #8a56b4;
$custom-light: #ae87cb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a56b4",
  "rgb": {
    "r": 138,
    "g": 86,
    "b": 180
  },
  "hsl": {
    "h": 273.191,
    "s": 38.525,
    "l": 52.157
  },
  "oklch": {
    "l": 0.55194,
    "c": 0.1485,
    "h": 307.8
  },
  "luminance": 0.15354
}

Semantic roles & 50–950 ramp

primary
#8A56B4
secondary
#B1C79E
accent
#CE598E
background
#FAF8FC
surface
#F5F0F8
border
#CFCBD1
text
#110B13
muted
#807C82

Preview Lab

Preview with #8A56B4

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

Preview Lab → · Contrast checker → · Palette generator →

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