#8A57D1#8A57D1

#8A57D1 is a mid, vivid violet. Relative luminance 0.168; OKLCH L 57.2% C 0.182 H 299.9°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#8A57D1
RGBrgb(138, 87, 209)
HSLhsl(265, 57%, 58%)
HSVhsv(265, 58%, 82%)
CMYKcmyk(34%, 58.4%, 0%, 18%)
CIE-LABlab(48.04, 46.02, -55.56)
CIE-LCHlch(48.04, 72.14, 309.64°)
OKLaboklab(57.16% 0.0907 -0.1575)
OKLCHoklch(57.16% 0.182 299.9)
XYZxyz(25.3953, 16.8229, 62.2185)
Luminance0.1682 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A57D1 #9ED157
analogous
#5761D1 #8A57D1 #C757D1
triadic
#8A57D1 #D18A57 #57D18A
tetradic
#8A57D1 #D15761 #9ED157 #57D1C7
square
#8A57D1 #D15761 #9ED157 #57D1C7
split-complementary
#8A57D1 #D1C757 #61D157
monochromatic
#4F2588 #6A32B8 #8A57D1 #AB87DE #CDB7EB

Accessibility & contrast

On white

4.81
#8A57D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.36
#8A57D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A57D1
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A57D1#FFFFFF#000000##FFFFFF
##8A57D11.004.814.364.81
#FFFFFF4.811.0021.001.00
#0000004.3621.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1772D5
Deuteranopia (green-blind)
#3071CE
Tritanopia (blue-blind)
#7B708C
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #8a57d1;
/* rgb */ color: rgb(138, 87, 209);
/* oklch */ color: oklch(57.2% 0.182 299.9);
Tailwind
colors: {
  custom: {
    50: '#b088e0',
    500: '#8a57d1',
    950: '#000000',
  },
}
SCSS
$custom: #8a57d1;
$custom-light: #b088e0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a57d1",
  "rgb": {
    "r": 138,
    "g": 87,
    "b": 209
  },
  "hsl": {
    "h": 265.082,
    "s": 57.009,
    "l": 58.039
  },
  "oklch": {
    "l": 0.57158,
    "c": 0.18176,
    "h": 299.9
  },
  "luminance": 0.16823
}

Semantic roles & 50–950 ramp

primary
#8A57D1
secondary
#C6DAAA
accent
#E048A0
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#110C15
muted
#807D83

Preview Lab

Preview with #8A57D1

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

Preview Lab → · Contrast checker → · Palette generator →

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