#8A57D3#8A57D3

#8A57D3 is a mid, vivid violet. Relative luminance 0.169; OKLCH L 57.3% C 0.184 H 299.5°. Best body text is #FFFFFF at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#8A57D3
RGBrgb(138, 87, 211)
HSLhsl(265, 58%, 58%)
HSVhsv(265, 59%, 83%)
CMYKcmyk(34.6%, 58.8%, 0%, 17.3%)
CIE-LABlab(48.16, 46.53, -56.50)
CIE-LCHlch(48.16, 73.19, 309.47°)
OKLaboklab(57.29% 0.0907 -0.1602)
OKLCHoklch(57.29% 0.184 299.5)
XYZxyz(25.6444, 16.9226, 63.5307)
Luminance0.1692 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A57D3 #A0D357
analogous
#5762D3 #8A57D3 #C857D3
triadic
#8A57D3 #D38A57 #57D38A
tetradic
#8A57D3 #D35762 #A0D357 #57D3C8
square
#8A57D3 #D35762 #A0D357 #57D3C8
split-complementary
#8A57D3 #D3C857 #62D357
monochromatic
#4F248B #6A31BC #8A57D3 #AC87E0 #CEB8EC

Accessibility & contrast

On white

4.79
#8A57D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.38
#8A57D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A57D3
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A57D3#FFFFFF#000000##FFFFFF
##8A57D31.004.794.384.79
#FFFFFF4.791.0021.001.00
#0000004.3821.001.0021.00
##FFFFFF4.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1172D7
Deuteranopia (green-blind)
#2E71D0
Tritanopia (blue-blind)
#7A718D
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #8a57d3;
/* rgb */ color: rgb(138, 87, 211);
/* oklch */ color: oklch(57.3% 0.184 299.5);
Tailwind
colors: {
  custom: {
    50: '#b088e1',
    500: '#8a57d3',
    950: '#000000',
  },
}
SCSS
$custom: #8a57d3;
$custom-light: #b088e1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a57d3",
  "rgb": {
    "r": 138,
    "g": 87,
    "b": 211
  },
  "hsl": {
    "h": 264.677,
    "s": 58.491,
    "l": 58.431
  },
  "oklch": {
    "l": 0.57291,
    "c": 0.18414,
    "h": 299.5
  },
  "luminance": 0.16923
}

Semantic roles & 50–950 ramp

primary
#8A57D3
secondary
#C7DCAA
accent
#E246A2
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#110C15
muted
#807D83

Preview Lab

Preview with #8A57D3

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

Preview Lab → · Contrast checker → · Palette generator →

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