#8A57E4#8A57E4

#8A57E4 is a mid, highly saturated violet. Relative luminance 0.178; OKLCH L 58.5% C 0.204 H 296.1°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#8A57E4
RGBrgb(138, 87, 228)
HSLhsl(262, 72%, 62%)
HSVhsv(262, 62%, 89%)
CMYKcmyk(39.5%, 61.8%, 0%, 10.6%)
CIE-LABlab(49.28, 50.88, -64.36)
CIE-LCHlch(49.28, 82.04, 308.33°)
OKLaboklab(58.46% 0.09 -0.1834)
OKLCHoklch(58.46% 0.204 296.1)
XYZxyz(27.8894, 17.8206, 75.3541)
Luminance0.1782 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A57E4 #B1E457
analogous
#576BE4 #8A57E4 #D157E4
triadic
#8A57E4 #E48A57 #57E48A
tetradic
#8A57E4 #E4576B #B1E457 #57E4D1
square
#8A57E4 #E4576B #B1E457 #57E4D1
split-complementary
#8A57E4 #E4D157 #6BE457
monochromatic
#4D1BA6 #6623DB #8A57E4 #AF8CEC #D3C0F5

Accessibility & contrast

On white

4.60
#8A57E4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#8A57E4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #8A57E4
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A57E4#FFFFFF#000000##FFFFFF
##8A57E41.004.604.564.60
#FFFFFF4.601.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076E8
Deuteranopia (green-blind)
#0073E1
Tritanopia (blue-blind)
#747796
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #8a57e4;
/* rgb */ color: rgb(138, 87, 228);
/* oklch */ color: oklch(58.5% 0.204 296.1);
Tailwind
colors: {
  custom: {
    50: '#b289ed',
    500: '#8a57e4',
    950: '#000000',
  },
}
SCSS
$custom: #8a57e4;
$custom-light: #b289ed;
$custom-dark: #000000;
JSON
{
  "hex": "#8a57e4",
  "rgb": {
    "r": 138,
    "g": 87,
    "b": 228
  },
  "hsl": {
    "h": 261.702,
    "s": 72.308,
    "l": 61.765
  },
  "oklch": {
    "l": 0.58459,
    "c": 0.20424,
    "h": 296.1
  },
  "luminance": 0.17821
}

Semantic roles & 50–950 ramp

primary
#8A57E4
secondary
#D3E6B1
accent
#D4118E
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #8A57E4

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

Preview Lab → · Contrast checker → · Palette generator →

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