#8A57C9#8A57C9

#8A57C9 is a mid, vivid violet. Relative luminance 0.164; OKLCH L 56.6% C 0.172 H 301.8°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#8A57C9
RGBrgb(138, 87, 201)
HSLhsl(267, 51%, 56%)
HSVhsv(267, 57%, 79%)
CMYKcmyk(31.3%, 56.7%, 0%, 21.2%)
CIE-LABlab(47.54, 44.02, -51.76)
CIE-LCHlch(47.54, 67.94, 310.38°)
OKLaboklab(56.64% 0.0907 -0.1463)
OKLCHoklch(56.64% 0.172 301.8)
XYZxyz(24.4296, 16.4366, 57.1326)
Luminance0.1644 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A57C9 #96C957
analogous
#575DC9 #8A57C9 #C357C9
triadic
#8A57C9 #C98A57 #57C98A
tetradic
#8A57C9 #C9575D #96C957 #57C9C3
square
#8A57C9 #C9575D #96C957 #57C9C3
split-complementary
#8A57C9 #C9C357 #5DC957
monochromatic
#4E287D #6B37AC #8A57C9 #AA85D8 #CBB4E7

Accessibility & contrast

On white

4.90
#8A57C9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#8A57C9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A57C9
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A57C9#FFFFFF#000000##FFFFFF
##8A57C91.004.904.294.90
#FFFFFF4.901.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2670CD
Deuteranopia (green-blind)
#3A70C6
Tritanopia (blue-blind)
#7E6E88
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #8a57c9;
/* rgb */ color: rgb(138, 87, 201);
/* oklch */ color: oklch(56.6% 0.172 301.8);
Tailwind
colors: {
  custom: {
    50: '#b088da',
    500: '#8a57c9',
    950: '#000000',
  },
}
SCSS
$custom: #8a57c9;
$custom-light: #b088da;
$custom-dark: #000000;
JSON
{
  "hex": "#8a57c9",
  "rgb": {
    "r": 138,
    "g": 87,
    "b": 201
  },
  "hsl": {
    "h": 266.842,
    "s": 51.351,
    "l": 56.471
  },
  "oklch": {
    "l": 0.56638,
    "c": 0.17218,
    "h": 301.8
  },
  "luminance": 0.16437
}

Semantic roles & 50–950 ramp

primary
#8A57C9
secondary
#C0D5A7
accent
#DB4D9B
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8A57C9

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

Preview Lab → · Contrast checker → · Palette generator →

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