#8A57BC#8A57BC

#8A57BC is a mid, vivid violet. Relative luminance 0.159; OKLCH L 55.8% C 0.157 H 305.2°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#8A57BC
RGBrgb(138, 87, 188)
HSLhsl(270, 43%, 54%)
HSVhsv(270, 54%, 74%)
CMYKcmyk(26.6%, 53.7%, 0%, 26.3%)
CIE-LABlab(46.78, 40.82, -45.46)
CIE-LCHlch(46.78, 61.10, 311.92°)
OKLaboklab(55.83% 0.0902 -0.1279)
OKLCHoklch(55.83% 0.157 305.2)
XYZxyz(22.9646, 15.8506, 49.4169)
Luminance0.1585 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A57BC #89BC57
analogous
#5857BC #8A57BC #BC57BC
triadic
#8A57BC #BC8A57 #57BC8A
tetradic
#8A57BC #BC5857 #89BC57 #57BCBC
square
#8A57BC #BC5857 #89BC57 #57BCBC
split-complementary
#8A57BC #BCBC57 #57BC58
monochromatic
#4D2C6D #6B3D99 #8A57BC #A883CD #C7AFDF

Accessibility & contrast

On white

5.04
#8A57BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#8A57BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A57BC
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A57BC#FFFFFF#000000##FFFFFF
##8A57BC1.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#356DBF
Deuteranopia (green-blind)
#466FBA
Tritanopia (blue-blind)
#826A81
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #8a57bc;
/* rgb */ color: rgb(138, 87, 188);
/* oklch */ color: oklch(55.8% 0.157 305.2);
Tailwind
colors: {
  custom: {
    50: '#af88d1',
    500: '#8a57bc',
    950: '#000000',
  },
}
SCSS
$custom: #8a57bc;
$custom-light: #af88d1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a57bc",
  "rgb": {
    "r": 138,
    "g": 87,
    "b": 188
  },
  "hsl": {
    "h": 270.297,
    "s": 42.979,
    "l": 53.922
  },
  "oklch": {
    "l": 0.55829,
    "c": 0.15652,
    "h": 305.2
  },
  "luminance": 0.15851
}

Semantic roles & 50–950 ramp

primary
#8A57BC
secondary
#B7CDA2
accent
#D35593
background
#FBF8FC
surface
#F6F0F9
border
#D0CBD2
text
#110B14
muted
#807C82

Preview Lab

Preview with #8A57BC

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

Preview Lab → · Contrast checker → · Palette generator →

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