#8A57E1#8A57E1

#8A57E1 is a mid, highly saturated violet. Relative luminance 0.177; OKLCH L 58.2% C 0.201 H 296.7°. Best body text is #FFFFFF at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#8A57E1
RGBrgb(138, 87, 225)
HSLhsl(262, 70%, 61%)
HSVhsv(262, 61%, 88%)
CMYKcmyk(38.7%, 61.3%, 0%, 11.8%)
CIE-LABlab(49.08, 50.11, -62.99)
CIE-LCHlch(49.08, 80.49, 308.50°)
OKLaboklab(58.25% 0.0902 -0.1793)
OKLCHoklch(58.25% 0.201 296.7)
XYZxyz(27.4765, 17.6554, 73.1798)
Luminance0.1766 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A57E1 #AEE157
analogous
#5769E1 #8A57E1 #CF57E1
triadic
#8A57E1 #E18A57 #57E18A
tetradic
#8A57E1 #E15769 #AEE157 #57E1CF
square
#8A57E1 #E15769 #AEE157 #57E1CF
split-complementary
#8A57E1 #E1CF57 #69E157
monochromatic
#4E1DA1 #6726D5 #8A57E1 #AE8BEA #D2BFF4

Accessibility & contrast

On white

4.63
#8A57E1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.53
#8A57E1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #8A57E1
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A57E1#FFFFFF#000000##FFFFFF
##8A57E11.004.634.534.63
#FFFFFF4.631.0021.001.00
#0000004.5321.001.0021.00
##FFFFFF4.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075E5
Deuteranopia (green-blind)
#0C73DE
Tritanopia (blue-blind)
#757694
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #8a57e1;
/* rgb */ color: rgb(138, 87, 225);
/* oklch */ color: oklch(58.2% 0.201 296.7);
Tailwind
colors: {
  custom: {
    50: '#b289eb',
    500: '#8a57e1',
    950: '#000000',
  },
}
SCSS
$custom: #8a57e1;
$custom-light: #b289eb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a57e1",
  "rgb": {
    "r": 138,
    "g": 87,
    "b": 225
  },
  "hsl": {
    "h": 262.174,
    "s": 69.697,
    "l": 61.176
  },
  "oklch": {
    "l": 0.58248,
    "c": 0.20072,
    "h": 296.7
  },
  "luminance": 0.17656
}

Semantic roles & 50–950 ramp

primary
#8A57E1
secondary
#D1E4B0
accent
#D2148C
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #8A57E1

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

Preview Lab → · Contrast checker → · Palette generator →

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