#8A57BE#8A57BE

#8A57BE is a mid, vivid violet. Relative luminance 0.159; OKLCH L 56.0% C 0.159 H 304.6°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#8A57BE
RGBrgb(138, 87, 190)
HSLhsl(270, 44%, 54%)
HSVhsv(270, 54%, 75%)
CMYKcmyk(27.4%, 54.2%, 0%, 25.5%)
CIE-LABlab(46.89, 41.31, -46.44)
CIE-LCHlch(46.89, 62.15, 311.65°)
OKLaboklab(55.95% 0.0904 -0.1307)
OKLCHoklch(55.95% 0.159 304.6)
XYZxyz(23.1817, 15.9375, 50.5602)
Luminance0.1594 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A57BE #8BBE57
analogous
#5758BE #8A57BE #BE57BE
triadic
#8A57BE #BE8A57 #57BE8A
tetradic
#8A57BE #BE5758 #8BBE57 #57BEBE
square
#8A57BE #BE5758 #8BBE57 #57BEBE
split-complementary
#8A57BE #BEBE57 #58BE57
monochromatic
#4D2B6F #6B3C9C #8A57BE #A983CF #C7AFE0

Accessibility & contrast

On white

5.02
#8A57BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#8A57BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A57BE
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A57BE#FFFFFF#000000##FFFFFF
##8A57BE1.005.024.195.02
#FFFFFF5.021.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#336EC1
Deuteranopia (green-blind)
#446FBC
Tritanopia (blue-blind)
#816A82
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #8a57be;
/* rgb */ color: rgb(138, 87, 190);
/* oklch */ color: oklch(56.0% 0.159 304.6);
Tailwind
colors: {
  custom: {
    50: '#af88d2',
    500: '#8a57be',
    950: '#000000',
  },
}
SCSS
$custom: #8a57be;
$custom-light: #af88d2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a57be",
  "rgb": {
    "r": 138,
    "g": 87,
    "b": 190
  },
  "hsl": {
    "h": 269.709,
    "s": 44.206,
    "l": 54.314
  },
  "oklch": {
    "l": 0.5595,
    "c": 0.15893,
    "h": 304.6
  },
  "luminance": 0.15937
}

Semantic roles & 50–950 ramp

primary
#8A57BE
secondary
#B9CEA3
accent
#D45495
background
#FBF8FC
surface
#F6F0F9
border
#D0CBD2
text
#110B14
muted
#807C82

Preview Lab

Preview with #8A57BE

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

Preview Lab → · Contrast checker → · Palette generator →

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