#8A57C8#8A57C8

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

Color values

HEX#8A57C8
RGBrgb(138, 87, 200)
HSLhsl(267, 51%, 56%)
HSVhsv(267, 57%, 78%)
CMYKcmyk(31%, 56.5%, 0%, 21.6%)
CIE-LABlab(47.48, 43.77, -51.28)
CIE-LCHlch(47.48, 67.42, 310.48°)
OKLaboklab(56.57% 0.0907 -0.1449)
OKLCHoklch(56.57% 0.171 302)
XYZxyz(24.3124, 16.3897, 56.5151)
Luminance0.1639 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A57C8 #95C857
analogous
#575DC8 #8A57C8 #C357C8
triadic
#8A57C8 #C88A57 #57C88A
tetradic
#8A57C8 #C8575D #95C857 #57C8C3
square
#8A57C8 #C8575D #95C857 #57C8C3
split-complementary
#8A57C8 #C8C357 #5DC857
monochromatic
#4E297C #6B38AA #8A57C8 #AA85D7 #CAB3E6

Accessibility & contrast

On white

4.91
#8A57C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#8A57C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A57C8
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A57C8#FFFFFF#000000##FFFFFF
##8A57C81.004.914.284.91
#FFFFFF4.911.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2770CC
Deuteranopia (green-blind)
#3B70C5
Tritanopia (blue-blind)
#7E6D87
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #8a57c8;
/* rgb */ color: rgb(138, 87, 200);
/* oklch */ color: oklch(56.6% 0.171 302.0);
Tailwind
colors: {
  custom: {
    50: '#b088d9',
    500: '#8a57c8',
    950: '#000000',
  },
}
SCSS
$custom: #8a57c8;
$custom-light: #b088d9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a57c8",
  "rgb": {
    "r": 138,
    "g": 87,
    "b": 200
  },
  "hsl": {
    "h": 267.08,
    "s": 50.673,
    "l": 56.275
  },
  "oklch": {
    "l": 0.56574,
    "c": 0.17098,
    "h": 302
  },
  "luminance": 0.1639
}

Semantic roles & 50–950 ramp

primary
#8A57C8
secondary
#C0D5A6
accent
#DA4E9B
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8A57C8

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

Preview Lab → · Contrast checker → · Palette generator →

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