#8A57B4#8A57B4

#8A57B4 is a mid, vivid violet. Relative luminance 0.155; OKLCH L 55.4% C 0.147 H 307.6°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#8A57B4
RGBrgb(138, 87, 180)
HSLhsl(273, 38%, 52%)
HSVhsv(273, 52%, 71%)
CMYKcmyk(23.3%, 51.7%, 0%, 29.4%)
CIE-LABlab(46.33, 38.91, -41.51)
CIE-LCHlch(46.33, 56.89, 313.15°)
OKLaboklab(55.35% 0.0896 -0.1163)
OKLCHoklch(55.35% 0.147 307.6)
XYZxyz(22.1260, 15.5152, 45.0003)
Luminance0.1552 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A57B4 #81B457
analogous
#5B57B4 #8A57B4 #B457B0
triadic
#8A57B4 #B48A57 #57B48A
tetradic
#8A57B4 #B45B57 #81B457 #57B0B4
square
#8A57B4 #B45B57 #81B457 #57B0B4
split-complementary
#8A57B4 #B0B457 #57B45B
monochromatic
#4B2D64 #6B408E #8A57B4 #A781C7 #C5ACDA

Accessibility & contrast

On white

5.12
#8A57B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#8A57B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A57B4
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A57B4#FFFFFF#000000##FFFFFF
##8A57B41.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C6CB7
Deuteranopia (green-blind)
#4C6EB2
Tritanopia (blue-blind)
#84677D
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #8a57b4;
/* rgb */ color: rgb(138, 87, 180);
/* oklch */ color: oklch(55.4% 0.147 307.6);
Tailwind
colors: {
  custom: {
    50: '#ae88cb',
    500: '#8a57b4',
    950: '#000000',
  },
}
SCSS
$custom: #8a57b4;
$custom-light: #ae88cb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a57b4",
  "rgb": {
    "r": 138,
    "g": 87,
    "b": 180
  },
  "hsl": {
    "h": 272.903,
    "s": 38.272,
    "l": 52.353
  },
  "oklch": {
    "l": 0.55354,
    "c": 0.14686,
    "h": 307.6
  },
  "luminance": 0.15515
}

Semantic roles & 50–950 ramp

primary
#8A57B4
secondary
#B1C89F
accent
#CE5A8E
background
#FAF8FC
surface
#F5F0F8
border
#CFCBD1
text
#110B13
muted
#807C82

Preview Lab

Preview with #8A57B4

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

Preview Lab → · Contrast checker → · Palette generator →

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