#8A57D8#8A57D8

#8A57D8 is a mid, vivid violet. Relative luminance 0.172; OKLCH L 57.6% C 0.190 H 298.5°. Best body text is #FFFFFF at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#8A57D8
RGBrgb(138, 87, 216)
HSLhsl(264, 62%, 59%)
HSVhsv(264, 60%, 85%)
CMYKcmyk(36.1%, 59.7%, 0%, 15.3%)
CIE-LABlab(48.48, 47.80, -58.84)
CIE-LCHlch(48.48, 75.81, 309.09°)
OKLaboklab(57.63% 0.0906 -0.1671)
OKLCHoklch(57.63% 0.19 298.5)
XYZxyz(26.2810, 17.1772, 66.8834)
Luminance0.1718 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A57D8 #A5D857
analogous
#5765D8 #8A57D8 #CB57D8
triadic
#8A57D8 #D88A57 #57D88A
tetradic
#8A57D8 #D85765 #A5D857 #57D8CB
square
#8A57D8 #D85765 #A5D857 #57D8CB
split-complementary
#8A57D8 #D8CB57 #65D857
monochromatic
#4F2293 #692EC4 #8A57D8 #AD89E4 #CFBAEF

Accessibility & contrast

On white

4.73
#8A57D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.44
#8A57D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A57D8
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A57D8#FFFFFF#000000##FFFFFF
##8A57D81.004.734.444.73
#FFFFFF4.731.0021.001.00
#0000004.4421.001.0021.00
##FFFFFF4.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073DC
Deuteranopia (green-blind)
#2572D5
Tritanopia (blue-blind)
#78738F
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #8a57d8;
/* rgb */ color: rgb(138, 87, 216);
/* oklch */ color: oklch(57.6% 0.190 298.5);
Tailwind
colors: {
  custom: {
    50: '#b189e5',
    500: '#8a57d8',
    950: '#000000',
  },
}
SCSS
$custom: #8a57d8;
$custom-light: #b189e5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a57d8",
  "rgb": {
    "r": 138,
    "g": 87,
    "b": 216
  },
  "hsl": {
    "h": 263.721,
    "s": 62.319,
    "l": 59.412
  },
  "oklch": {
    "l": 0.57627,
    "c": 0.19009,
    "h": 298.5
  },
  "luminance": 0.17178
}

Semantic roles & 50–950 ramp

primary
#8A57D8
secondary
#CBDFAC
accent
#E542A5
background
#FBF8FE
surface
#F6F0FC
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #8A57D8

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

Preview Lab → · Contrast checker → · Palette generator →

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