#8A57CC#8A57CC

#8A57CC is a mid, vivid violet. Relative luminance 0.166; OKLCH L 56.8% C 0.176 H 301.1°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#8A57CC
RGBrgb(138, 87, 204)
HSLhsl(266, 53%, 57%)
HSVhsv(266, 57%, 80%)
CMYKcmyk(32.4%, 57.4%, 0%, 20%)
CIE-LABlab(47.73, 44.76, -53.19)
CIE-LCHlch(47.73, 69.52, 310.08°)
OKLaboklab(56.83% 0.0908 -0.1505)
OKLCHoklch(56.83% 0.176 301.1)
XYZxyz(24.7859, 16.5792, 59.0093)
Luminance0.1658 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A57CC #99CC57
analogous
#575FCC #8A57CC #C557CC
triadic
#8A57CC #CC8A57 #57CC8A
tetradic
#8A57CC #CC575F #99CC57 #57CCC5
square
#8A57CC #CC575F #99CC57 #57CCC5
split-complementary
#8A57CC #CCC557 #5FCC57
monochromatic
#4F2781 #6B36B0 #8A57CC #AB86DA #CBB5E9

Accessibility & contrast

On white

4.87
#8A57CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#8A57CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A57CC
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A57CC#FFFFFF#000000##FFFFFF
##8A57CC1.004.874.324.87
#FFFFFF4.871.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2171D0
Deuteranopia (green-blind)
#3771C9
Tritanopia (blue-blind)
#7D6F89
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #8a57cc;
/* rgb */ color: rgb(138, 87, 204);
/* oklch */ color: oklch(56.8% 0.176 301.1);
Tailwind
colors: {
  custom: {
    50: '#b088dc',
    500: '#8a57cc',
    950: '#000000',
  },
}
SCSS
$custom: #8a57cc;
$custom-light: #b088dc;
$custom-dark: #000000;
JSON
{
  "hex": "#8a57cc",
  "rgb": {
    "r": 138,
    "g": 87,
    "b": 204
  },
  "hsl": {
    "h": 266.154,
    "s": 53.425,
    "l": 57.059
  },
  "oklch": {
    "l": 0.56831,
    "c": 0.17578,
    "h": 301.1
  },
  "luminance": 0.16579
}

Semantic roles & 50–950 ramp

primary
#8A57CC
secondary
#C2D7A8
accent
#DD4B9D
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8A57CC

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

Preview Lab → · Contrast checker → · Palette generator →

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