#8A57CD#8A57CD

#8A57CD is a mid, vivid violet. Relative luminance 0.166; OKLCH L 56.9% C 0.177 H 300.9°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#8A57CD
RGBrgb(138, 87, 205)
HSLhsl(266, 54%, 57%)
HSVhsv(266, 58%, 80%)
CMYKcmyk(32.7%, 57.6%, 0%, 19.6%)
CIE-LABlab(47.79, 45.01, -53.67)
CIE-LCHlch(47.79, 70.04, 309.99°)
OKLaboklab(56.9% 0.0908 -0.1519)
OKLCHoklch(56.9% 0.177 300.9)
XYZxyz(24.9063, 16.6273, 59.6430)
Luminance0.1663 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A57CD #9ACD57
analogous
#575FCD #8A57CD #C557CD
triadic
#8A57CD #CD8A57 #57CD8A
tetradic
#8A57CD #CD575F #9ACD57 #57CDC5
square
#8A57CD #CD575F #9ACD57 #57CDC5
split-complementary
#8A57CD #CDC557 #5FCD57
monochromatic
#4F2783 #6B35B2 #8A57CD #AB86DB #CCB5E9

Accessibility & contrast

On white

4.86
#8A57CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#8A57CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A57CD
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A57CD#FFFFFF#000000##FFFFFF
##8A57CD1.004.864.334.86
#FFFFFF4.861.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F71D1
Deuteranopia (green-blind)
#3571CA
Tritanopia (blue-blind)
#7C6F8A
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #8a57cd;
/* rgb */ color: rgb(138, 87, 205);
/* oklch */ color: oklch(56.9% 0.177 300.9);
Tailwind
colors: {
  custom: {
    50: '#b088dd',
    500: '#8a57cd',
    950: '#000000',
  },
}
SCSS
$custom: #8a57cd;
$custom-light: #b088dd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a57cd",
  "rgb": {
    "r": 138,
    "g": 87,
    "b": 205
  },
  "hsl": {
    "h": 265.932,
    "s": 54.128,
    "l": 57.255
  },
  "oklch": {
    "l": 0.56896,
    "c": 0.17697,
    "h": 300.9
  },
  "luminance": 0.16627
}

Semantic roles & 50–950 ramp

primary
#8A57CD
secondary
#C3D8A8
accent
#DD4A9E
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8A57CD

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

Preview Lab → · Contrast checker → · Palette generator →

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