#8A57E5#8A57E5

#8A57E5 is a mid, highly saturated violet. Relative luminance 0.179; OKLCH L 58.5% C 0.205 H 296.0°. Best body text is #FFFFFF at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#8A57E5
RGBrgb(138, 87, 229)
HSLhsl(262, 73%, 62%)
HSVhsv(262, 62%, 90%)
CMYKcmyk(39.7%, 62%, 0%, 10.2%)
CIE-LABlab(49.35, 51.14, -64.81)
CIE-LCHlch(49.35, 82.56, 308.28°)
OKLaboklab(58.53% 0.0899 -0.1847)
OKLCHoklch(58.53% 0.205 296)
XYZxyz(28.0286, 17.8762, 76.0873)
Luminance0.1788 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A57E5 #B2E557
analogous
#576BE5 #8A57E5 #D157E5
triadic
#8A57E5 #E58A57 #57E58A
tetradic
#8A57E5 #E5576B #B2E557 #57E5D1
square
#8A57E5 #E5576B #B2E557 #57E5D1
split-complementary
#8A57E5 #E5D157 #6BE557
monochromatic
#4D1AA8 #6522DD #8A57E5 #AF8CED #D4C1F5

Accessibility & contrast

On white

4.59
#8A57E5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.58
#8A57E5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #8A57E5
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A57E5#FFFFFF#000000##FFFFFF
##8A57E51.004.594.584.59
#FFFFFF4.591.0021.001.00
#0000004.5821.001.0021.00
##FFFFFF4.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076E9
Deuteranopia (green-blind)
#0073E2
Tritanopia (blue-blind)
#737796
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #8a57e5;
/* rgb */ color: rgb(138, 87, 229);
/* oklch */ color: oklch(58.5% 0.205 296.0);
Tailwind
colors: {
  custom: {
    50: '#b289ee',
    500: '#8a57e5',
    950: '#000000',
  },
}
SCSS
$custom: #8a57e5;
$custom-light: #b289ee;
$custom-dark: #000000;
JSON
{
  "hex": "#8a57e5",
  "rgb": {
    "r": 138,
    "g": 87,
    "b": 229
  },
  "hsl": {
    "h": 261.549,
    "s": 73.196,
    "l": 61.961
  },
  "oklch": {
    "l": 0.5853,
    "c": 0.20542,
    "h": 296
  },
  "luminance": 0.17877
}

Semantic roles & 50–950 ramp

primary
#8A57E5
secondary
#D3E6B2
accent
#D5108F
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #8A57E5

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

Preview Lab → · Contrast checker → · Palette generator →

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