#8A56AA#8A56AA

#8A56AA is a mid, vivid violet. Relative luminance 0.150; OKLCH L 54.6% C 0.137 H 311.2°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#8A56AA
RGBrgb(138, 86, 170)
HSLhsl(277, 33%, 50%)
HSVhsv(277, 49%, 67%)
CMYKcmyk(18.8%, 49.4%, 0%, 33.3%)
CIE-LABlab(45.58, 37.14, -36.83)
CIE-LCHlch(45.58, 52.30, 315.24°)
OKLaboklab(54.62% 0.09 -0.1027)
OKLCHoklch(54.62% 0.137 311.2)
XYZxyz(21.0634, 14.9615, 39.8007)
Luminance0.1496 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A56AA #76AA56
analogous
#6056AA #8A56AA #AA56A0
triadic
#8A56AA #AA8A56 #56AA8A
tetradic
#8A56AA #AA6056 #76AA56 #56A0AA
square
#8A56AA #AA6056 #76AA56 #56A0AA
split-complementary
#8A56AA #A0AA56 #56AA60
monochromatic
#482D59 #694182 #8A56AA #A67FBE #C2A7D3

Accessibility & contrast

On white

5.26
#8A56AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#8A56AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A56AA
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A56AA#FFFFFF#000000##FFFFFF
##8A56AA1.005.263.995.26
#FFFFFF5.261.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4269AD
Deuteranopia (green-blind)
#516DA8
Tritanopia (blue-blind)
#866378
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #8a56aa;
/* rgb */ color: rgb(138, 86, 170);
/* oklch */ color: oklch(54.6% 0.137 311.2);
Tailwind
colors: {
  custom: {
    50: '#ae87c3',
    500: '#8a56aa',
    950: '#000000',
  },
}
SCSS
$custom: #8a56aa;
$custom-light: #ae87c3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a56aa",
  "rgb": {
    "r": 138,
    "g": 86,
    "b": 170
  },
  "hsl": {
    "h": 277.143,
    "s": 33.071,
    "l": 50.196
  },
  "oklch": {
    "l": 0.54624,
    "c": 0.13653,
    "h": 311.2
  },
  "luminance": 0.14961
}

Semantic roles & 50–950 ramp

primary
#8A56AA
secondary
#A9C19B
accent
#C95F87
background
#FAF8FC
surface
#F5F0F8
border
#CFCBD1
text
#100B12
muted
#7F7C81

Preview Lab

Preview with #8A56AA

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

Preview Lab → · Contrast checker → · Palette generator →

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