#8A57B5#8A57B5

#8A57B5 is a mid, vivid violet. Relative luminance 0.156; OKLCH L 55.4% C 0.148 H 307.3°. Best body text is #FFFFFF at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#8A57B5
RGBrgb(138, 87, 181)
HSLhsl(273, 39%, 53%)
HSVhsv(273, 52%, 71%)
CMYKcmyk(23.8%, 51.9%, 0%, 29%)
CIE-LABlab(46.39, 39.15, -42.00)
CIE-LCHlch(46.39, 57.42, 312.98°)
OKLaboklab(55.41% 0.0897 -0.1178)
OKLCHoklch(55.41% 0.148 307.3)
XYZxyz(22.2282, 15.5561, 45.5387)
Luminance0.1556 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A57B5 #82B557
analogous
#5B57B5 #8A57B5 #B557B1
triadic
#8A57B5 #B58A57 #57B58A
tetradic
#8A57B5 #B55B57 #82B557 #57B1B5
square
#8A57B5 #B55B57 #82B557 #57B1B5
split-complementary
#8A57B5 #B1B557 #57B55B
monochromatic
#4B2D65 #6B3F90 #8A57B5 #A881C8 #C5ACDA

Accessibility & contrast

On white

5.11
#8A57B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#8A57B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A57B5
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A57B5#FFFFFF#000000##FFFFFF
##8A57B51.005.114.115.11
#FFFFFF5.111.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B6CB8
Deuteranopia (green-blind)
#4B6EB3
Tritanopia (blue-blind)
#84677E
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #8a57b5;
/* rgb */ color: rgb(138, 87, 181);
/* oklch */ color: oklch(55.4% 0.148 307.3);
Tailwind
colors: {
  custom: {
    50: '#ae88cb',
    500: '#8a57b5',
    950: '#000000',
  },
}
SCSS
$custom: #8a57b5;
$custom-light: #ae88cb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a57b5",
  "rgb": {
    "r": 138,
    "g": 87,
    "b": 181
  },
  "hsl": {
    "h": 272.553,
    "s": 38.843,
    "l": 52.549
  },
  "oklch": {
    "l": 0.55412,
    "c": 0.14806,
    "h": 307.3
  },
  "luminance": 0.15556
}

Semantic roles & 50–950 ramp

primary
#8A57B5
secondary
#B2C89F
accent
#CF598F
background
#FAF8FC
surface
#F5F0F9
border
#CFCBD2
text
#110B13
muted
#807C82

Preview Lab

Preview with #8A57B5

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

Preview Lab → · Contrast checker → · Palette generator →

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