#8A57EC#8A57EC

#8A57EC is a mid, highly saturated violet. Relative luminance 0.183; OKLCH L 59.0% C 0.214 H 294.7°. Best body text is #000000 at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#8A57EC
RGBrgb(138, 87, 236)
HSLhsl(261, 80%, 63%)
HSVhsv(261, 63%, 93%)
CMYKcmyk(41.5%, 63.1%, 0%, 7.5%)
CIE-LABlab(49.83, 52.96, -67.98)
CIE-LCHlch(49.83, 86.17, 307.92°)
OKLaboklab(59.03% 0.0893 -0.194)
OKLCHoklch(59.03% 0.214 294.7)
XYZxyz(29.0257, 18.2751, 81.3388)
Luminance0.1828 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A57EC #B9EC57
analogous
#576EEC #8A57EC #D457EC
triadic
#8A57EC #EC8A57 #57EC8A
tetradic
#8A57EC #EC576E #B9EC57 #57ECD4
square
#8A57EC #EC576E #B9EC57 #57ECD4
split-complementary
#8A57EC #ECD457 #6EEC57
monochromatic
#4B14B4 #6420E6 #8A57EC #B08EF2 #D7C5F8

Accessibility & contrast

On white

4.51
#8A57EC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.66
#8A57EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A57EC
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A57EC#FFFFFF#000000##000000
##8A57EC1.004.514.664.66
#FFFFFF4.511.0021.0021.00
#0000004.6621.001.001.00
##0000004.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#0078F1
Deuteranopia (green-blind)
#0074E9
Tritanopia (blue-blind)
#70799A
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #8a57ec;
/* rgb */ color: rgb(138, 87, 236);
/* oklch */ color: oklch(59.0% 0.214 294.7);
Tailwind
colors: {
  custom: {
    50: '#b389f3',
    500: '#8a57ec',
    950: '#000000',
  },
}
SCSS
$custom: #8a57ec;
$custom-light: #b389f3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a57ec",
  "rgb": {
    "r": 138,
    "g": 87,
    "b": 236
  },
  "hsl": {
    "h": 260.537,
    "s": 79.679,
    "l": 63.333
  },
  "oklch": {
    "l": 0.59032,
    "c": 0.21357,
    "h": 294.7
  },
  "luminance": 0.18276
}

Semantic roles & 50–950 ramp

primary
#8A57EC
secondary
#D8EAB5
accent
#DC0A94
background
#FBF8FF
surface
#F6F0FE
border
#D0CBD6
text
#120C17
muted
#817D85

Preview Lab

Preview with #8A57EC

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

Preview Lab → · Contrast checker → · Palette generator →

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