#8A56BB#8A56BB

#8A56BB is a mid, vivid violet. Relative luminance 0.156; OKLCH L 55.6% C 0.157 H 305.7°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#8A56BB
RGBrgb(138, 86, 187)
HSLhsl(271, 43%, 54%)
HSVhsv(271, 54%, 73%)
CMYKcmyk(26.2%, 54%, 0%, 26.7%)
CIE-LABlab(46.51, 41.14, -45.31)
CIE-LCHlch(46.51, 61.20, 312.24°)
OKLaboklab(55.61% 0.0915 -0.1274)
OKLCHoklch(55.61% 0.157 305.7)
XYZxyz(22.7768, 15.6469, 48.8243)
Luminance0.1565 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A56BB #87BB56
analogous
#5756BB #8A56BB #BB56B9
triadic
#8A56BB #BB8A56 #56BB8A
tetradic
#8A56BB #BB5756 #87BB56 #56B9BB
square
#8A56BB #BB5756 #87BB56 #56B9BB
split-complementary
#8A56BB #B9BB56 #56BB57
monochromatic
#4C2B6B #6B3D97 #8A56BB #A882CD #C6ADDE

Accessibility & contrast

On white

5.09
#8A56BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#8A56BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A56BB
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A56BB#FFFFFF#000000##FFFFFF
##8A56BB1.005.094.135.09
#FFFFFF5.091.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#346DBE
Deuteranopia (green-blind)
#456EB9
Tritanopia (blue-blind)
#826980
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #8a56bb;
/* rgb */ color: rgb(138, 86, 187);
/* oklch */ color: oklch(55.6% 0.157 305.7);
Tailwind
colors: {
  custom: {
    50: '#af87d0',
    500: '#8a56bb',
    950: '#000000',
  },
}
SCSS
$custom: #8a56bb;
$custom-light: #af87d0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a56bb",
  "rgb": {
    "r": 138,
    "g": 86,
    "b": 187
  },
  "hsl": {
    "h": 270.891,
    "s": 42.616,
    "l": 53.529
  },
  "oklch": {
    "l": 0.55611,
    "c": 0.15689,
    "h": 305.7
  },
  "luminance": 0.15647
}

Semantic roles & 50–950 ramp

primary
#8A56BB
secondary
#B6CCA1
accent
#D25592
background
#FBF8FC
surface
#F6F0F9
border
#D0CBD2
text
#110B14
muted
#807C82

Preview Lab

Preview with #8A56BB

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

Preview Lab → · Contrast checker → · Palette generator →

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