#8A57D2#8A57D2

#8A57D2 is a mid, vivid violet. Relative luminance 0.169; OKLCH L 57.2% C 0.183 H 299.7°. Best body text is #FFFFFF at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#8A57D2
RGBrgb(138, 87, 210)
HSLhsl(265, 58%, 58%)
HSVhsv(265, 59%, 82%)
CMYKcmyk(34.3%, 58.6%, 0%, 17.6%)
CIE-LABlab(48.10, 46.27, -56.03)
CIE-LCHlch(48.10, 72.67, 309.55°)
OKLaboklab(57.22% 0.0907 -0.1589)
OKLCHoklch(57.22% 0.183 299.7)
XYZxyz(25.5195, 16.8726, 62.8725)
Luminance0.1687 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A57D2 #9FD257
analogous
#5761D2 #8A57D2 #C757D2
triadic
#8A57D2 #D28A57 #57D28A
tetradic
#8A57D2 #D25761 #9FD257 #57D2C7
square
#8A57D2 #D25761 #9FD257 #57D2C7
split-complementary
#8A57D2 #D2C757 #61D257
monochromatic
#4F258A #6A32BA #8A57D2 #AC87DF #CDB8EC

Accessibility & contrast

On white

4.80
#8A57D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#8A57D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A57D2
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A57D2#FFFFFF#000000##FFFFFF
##8A57D21.004.804.374.80
#FFFFFF4.801.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1472D6
Deuteranopia (green-blind)
#2F71CF
Tritanopia (blue-blind)
#7B718C
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #8a57d2;
/* rgb */ color: rgb(138, 87, 210);
/* oklch */ color: oklch(57.2% 0.183 299.7);
Tailwind
colors: {
  custom: {
    50: '#b088e0',
    500: '#8a57d2',
    950: '#000000',
  },
}
SCSS
$custom: #8a57d2;
$custom-light: #b088e0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a57d2",
  "rgb": {
    "r": 138,
    "g": 87,
    "b": 210
  },
  "hsl": {
    "h": 264.878,
    "s": 57.746,
    "l": 58.235
  },
  "oklch": {
    "l": 0.57224,
    "c": 0.18295,
    "h": 299.7
  },
  "luminance": 0.16873
}

Semantic roles & 50–950 ramp

primary
#8A57D2
secondary
#C7DBAA
accent
#E147A1
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#110C15
muted
#807D83

Preview Lab

Preview with #8A57D2

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

Preview Lab → · Contrast checker → · Palette generator →

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