#8A57BA#8A57BA

#8A57BA is a mid, vivid violet. Relative luminance 0.158; OKLCH L 55.7% C 0.154 H 305.8°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#8A57BA
RGBrgb(138, 87, 186)
HSLhsl(271, 42%, 54%)
HSVhsv(271, 53%, 73%)
CMYKcmyk(25.8%, 53.2%, 0%, 27.1%)
CIE-LABlab(46.66, 40.34, -44.48)
CIE-LCHlch(46.66, 60.05, 312.21°)
OKLaboklab(55.71% 0.0901 -0.125)
OKLCHoklch(55.71% 0.154 305.8)
XYZxyz(22.7505, 15.7650, 48.2893)
Luminance0.1577 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A57BA #87BA57
analogous
#5857BA #8A57BA #BA57B8
triadic
#8A57BA #BA8A57 #57BA8A
tetradic
#8A57BA #BA5857 #87BA57 #57B8BA
square
#8A57BA #BA5857 #87BA57 #57B8BA
split-complementary
#8A57BA #B8BA57 #57BA58
monochromatic
#4C2C6B #6B3E96 #8A57BA #A882CC #C6AEDE

Accessibility & contrast

On white

5.06
#8A57BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#8A57BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A57BA
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A57BA#FFFFFF#000000##FFFFFF
##8A57BA1.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#376DBD
Deuteranopia (green-blind)
#476FB8
Tritanopia (blue-blind)
#826980
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #8a57ba;
/* rgb */ color: rgb(138, 87, 186);
/* oklch */ color: oklch(55.7% 0.154 305.8);
Tailwind
colors: {
  custom: {
    50: '#af88cf',
    500: '#8a57ba',
    950: '#000000',
  },
}
SCSS
$custom: #8a57ba;
$custom-light: #af88cf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a57ba",
  "rgb": {
    "r": 138,
    "g": 87,
    "b": 186
  },
  "hsl": {
    "h": 270.909,
    "s": 41.772,
    "l": 53.529
  },
  "oklch": {
    "l": 0.55708,
    "c": 0.1541,
    "h": 305.8
  },
  "luminance": 0.15765
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8A57BA

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

Preview Lab → · Contrast checker → · Palette generator →

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