#8A57E3#8A57E3

#8A57E3 is a mid, highly saturated violet. Relative luminance 0.178; OKLCH L 58.4% C 0.203 H 296.3°. Best body text is #FFFFFF at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#8A57E3
RGBrgb(138, 87, 227)
HSLhsl(262, 71%, 62%)
HSVhsv(262, 62%, 89%)
CMYKcmyk(39.2%, 61.7%, 0%, 11%)
CIE-LABlab(49.21, 50.63, -63.90)
CIE-LCHlch(49.21, 81.53, 308.39°)
OKLaboklab(58.39% 0.09 -0.182)
OKLCHoklch(58.39% 0.203 296.3)
XYZxyz(27.7510, 17.7652, 74.6251)
Luminance0.1777 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A57E3 #B0E357
analogous
#576AE3 #8A57E3 #D057E3
triadic
#8A57E3 #E38A57 #57E38A
tetradic
#8A57E3 #E3576A #B0E357 #57E3D0
square
#8A57E3 #E3576A #B0E357 #57E3D0
split-complementary
#8A57E3 #E3D057 #6AE357
monochromatic
#4D1BA4 #6624D9 #8A57E3 #AF8BEC #D3C0F4

Accessibility & contrast

On white

4.61
#8A57E3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.55
#8A57E3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #8A57E3
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A57E3#FFFFFF#000000##FFFFFF
##8A57E31.004.614.554.61
#FFFFFF4.611.0021.001.00
#0000004.5521.001.0021.00
##FFFFFF4.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076E7
Deuteranopia (green-blind)
#0173E0
Tritanopia (blue-blind)
#747695
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #8a57e3;
/* rgb */ color: rgb(138, 87, 227);
/* oklch */ color: oklch(58.4% 0.203 296.3);
Tailwind
colors: {
  custom: {
    50: '#b289ed',
    500: '#8a57e3',
    950: '#000000',
  },
}
SCSS
$custom: #8a57e3;
$custom-light: #b289ed;
$custom-dark: #000000;
JSON
{
  "hex": "#8a57e3",
  "rgb": {
    "r": 138,
    "g": 87,
    "b": 227
  },
  "hsl": {
    "h": 261.857,
    "s": 71.429,
    "l": 61.569
  },
  "oklch": {
    "l": 0.58388,
    "c": 0.20307,
    "h": 296.3
  },
  "luminance": 0.17766
}

Semantic roles & 50–950 ramp

primary
#8A57E3
secondary
#D2E5B1
accent
#D3128D
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #8A57E3

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

Preview Lab → · Contrast checker → · Palette generator →

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