#8A57BB#8A57BB

#8A57BB is a mid, vivid violet. Relative luminance 0.158; OKLCH L 55.8% C 0.155 H 305.5°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#8A57BB
RGBrgb(138, 87, 187)
HSLhsl(271, 42%, 54%)
HSVhsv(271, 53%, 73%)
CMYKcmyk(26.2%, 53.5%, 0%, 26.7%)
CIE-LABlab(46.72, 40.58, -44.97)
CIE-LCHlch(46.72, 60.57, 312.06°)
OKLaboklab(55.77% 0.0902 -0.1264)
OKLCHoklch(55.77% 0.155 305.5)
XYZxyz(22.8572, 15.8077, 48.8511)
Luminance0.1581 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A57BB #88BB57
analogous
#5857BB #8A57BB #BB57BA
triadic
#8A57BB #BB8A57 #57BB8A
tetradic
#8A57BB #BB5857 #88BB57 #57BABB
square
#8A57BB #BB5857 #88BB57 #57BABB
split-complementary
#8A57BB #BABB57 #57BB58
monochromatic
#4C2C6C #6B3D97 #8A57BB #A883CD #C7AEDE

Accessibility & contrast

On white

5.05
#8A57BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#8A57BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A57BB
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A57BB#FFFFFF#000000##FFFFFF
##8A57BB1.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#366DBE
Deuteranopia (green-blind)
#466FB9
Tritanopia (blue-blind)
#826981
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #8a57bb;
/* rgb */ color: rgb(138, 87, 187);
/* oklch */ color: oklch(55.8% 0.155 305.5);
Tailwind
colors: {
  custom: {
    50: '#af88d0',
    500: '#8a57bb',
    950: '#000000',
  },
}
SCSS
$custom: #8a57bb;
$custom-light: #af88d0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a57bb",
  "rgb": {
    "r": 138,
    "g": 87,
    "b": 187
  },
  "hsl": {
    "h": 270.6,
    "s": 42.373,
    "l": 53.725
  },
  "oklch": {
    "l": 0.55768,
    "c": 0.15531,
    "h": 305.5
  },
  "luminance": 0.15808
}

Semantic roles & 50–950 ramp

primary
#8A57BB
secondary
#B6CCA2
accent
#D25693
background
#FBF8FC
surface
#F6F0F9
border
#D0CBD2
text
#110B14
muted
#807C82

Preview Lab

Preview with #8A57BB

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

Preview Lab → · Contrast checker → · Palette generator →

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