#8A57B8#8A57B8

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

Color values

HEX#8A57B8
RGBrgb(138, 87, 184)
HSLhsl(272, 41%, 53%)
HSVhsv(272, 53%, 72%)
CMYKcmyk(25%, 52.7%, 0%, 27.8%)
CIE-LABlab(46.55, 39.86, -43.49)
CIE-LCHlch(46.55, 58.99, 312.51°)
OKLaboklab(55.59% 0.09 -0.1221)
OKLCHoklch(55.59% 0.152 306.4)
XYZxyz(22.5394, 15.6806, 47.1774)
Luminance0.1568 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A57B8 #85B857
analogous
#5957B8 #8A57B8 #B857B6
triadic
#8A57B8 #B88A57 #57B88A
tetradic
#8A57B8 #B85957 #85B857 #57B6B8
square
#8A57B8 #B85957 #85B857 #57B6B8
split-complementary
#8A57B8 #B6B857 #57B859
monochromatic
#4C2C68 #6B3E93 #8A57B8 #A882CA #C6ADDC

Accessibility & contrast

On white

5.08
#8A57B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#8A57B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A57B8
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A57B8#FFFFFF#000000##FFFFFF
##8A57B81.005.084.145.08
#FFFFFF5.081.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#396DBB
Deuteranopia (green-blind)
#496FB6
Tritanopia (blue-blind)
#83687F
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #8a57b8;
/* rgb */ color: rgb(138, 87, 184);
/* oklch */ color: oklch(55.6% 0.152 306.4);
Tailwind
colors: {
  custom: {
    50: '#af88ce',
    500: '#8a57b8',
    950: '#000000',
  },
}
SCSS
$custom: #8a57b8;
$custom-light: #af88ce;
$custom-dark: #000000;
JSON
{
  "hex": "#8a57b8",
  "rgb": {
    "r": 138,
    "g": 87,
    "b": 184
  },
  "hsl": {
    "h": 271.546,
    "s": 40.586,
    "l": 53.137
  },
  "oklch": {
    "l": 0.55589,
    "c": 0.15169,
    "h": 306.4
  },
  "luminance": 0.1568
}

Semantic roles & 50–950 ramp

primary
#8A57B8
secondary
#B4CAA0
accent
#D05791
background
#FBF8FC
surface
#F6F0F9
border
#D0CBD2
text
#110B13
muted
#807C82

Preview Lab

Preview with #8A57B8

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

Preview Lab → · Contrast checker → · Palette generator →

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