#8A56AD#8A56AD

#8A56AD is a mid, vivid violet. Relative luminance 0.151; OKLCH L 54.8% C 0.140 H 310.1°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#8A56AD
RGBrgb(138, 86, 173)
HSLhsl(276, 35%, 51%)
HSVhsv(276, 50%, 68%)
CMYKcmyk(20.2%, 50.3%, 0%, 32.2%)
CIE-LABlab(45.74, 37.83, -38.34)
CIE-LCHlch(45.74, 53.86, 314.61°)
OKLaboklab(54.79% 0.0903 -0.1071)
OKLCHoklch(54.79% 0.14 310.1)
XYZxyz(21.3504, 15.0763, 41.3124)
Luminance0.1508 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A56AD #79AD56
analogous
#5E56AD #8A56AD #AD56A4
triadic
#8A56AD #AD8A56 #56AD8A
tetradic
#8A56AD #AD5E56 #79AD56 #56A4AD
square
#8A56AD #AD5E56 #79AD56 #56A4AD
split-complementary
#8A56AD #A4AD56 #56AD5E
monochromatic
#492D5C #6A4185 #8A56AD #A77FC1 #C3A8D5

Accessibility & contrast

On white

5.23
#8A56AD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#8A56AD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A56AD
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A56AD#FFFFFF#000000##FFFFFF
##8A56AD1.005.234.025.23
#FFFFFF5.231.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#406AB0
Deuteranopia (green-blind)
#4F6DAB
Tritanopia (blue-blind)
#866479
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #8a56ad;
/* rgb */ color: rgb(138, 86, 173);
/* oklch */ color: oklch(54.8% 0.140 310.1);
Tailwind
colors: {
  custom: {
    50: '#ae87c6',
    500: '#8a56ad',
    950: '#000000',
  },
}
SCSS
$custom: #8a56ad;
$custom-light: #ae87c6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a56ad",
  "rgb": {
    "r": 138,
    "g": 86,
    "b": 173
  },
  "hsl": {
    "h": 275.862,
    "s": 34.661,
    "l": 50.784
  },
  "oklch": {
    "l": 0.54792,
    "c": 0.14011,
    "h": 310.1
  },
  "luminance": 0.15076
}

Semantic roles & 50–950 ramp

primary
#8A56AD
secondary
#ACC39C
accent
#CB5D89
background
#FAF8FC
surface
#F5F0F8
border
#CFCBD1
text
#100B13
muted
#7F7C82

Preview Lab

Preview with #8A56AD

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

Preview Lab → · Contrast checker → · Palette generator →

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