#8A57CB#8A57CB

#8A57CB is a mid, vivid violet. Relative luminance 0.165; OKLCH L 56.8% C 0.175 H 301.3°. Best body text is #FFFFFF at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#8A57CB
RGBrgb(138, 87, 203)
HSLhsl(266, 53%, 57%)
HSVhsv(266, 57%, 80%)
CMYKcmyk(32%, 57.1%, 0%, 20.4%)
CIE-LABlab(47.66, 44.51, -52.71)
CIE-LCHlch(47.66, 68.99, 310.18°)
OKLaboklab(56.77% 0.0908 -0.1491)
OKLCHoklch(56.77% 0.175 301.3)
XYZxyz(24.6664, 16.5314, 58.3797)
Luminance0.1653 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A57CB #98CB57
analogous
#575ECB #8A57CB #C457CB
triadic
#8A57CB #CB8A57 #57CB8A
tetradic
#8A57CB #CB575E #98CB57 #57CBC4
square
#8A57CB #CB575E #98CB57 #57CBC4
split-complementary
#8A57CB #CBC457 #5ECB57
monochromatic
#4E2880 #6B36AF #8A57CB #AB86D9 #CBB4E8

Accessibility & contrast

On white

4.88
#8A57CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#8A57CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A57CB
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A57CB#FFFFFF#000000##FFFFFF
##8A57CB1.004.884.314.88
#FFFFFF4.881.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2370CF
Deuteranopia (green-blind)
#3871C8
Tritanopia (blue-blind)
#7D6E89
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #8a57cb;
/* rgb */ color: rgb(138, 87, 203);
/* oklch */ color: oklch(56.8% 0.175 301.3);
Tailwind
colors: {
  custom: {
    50: '#b088db',
    500: '#8a57cb',
    950: '#000000',
  },
}
SCSS
$custom: #8a57cb;
$custom-light: #b088db;
$custom-dark: #000000;
JSON
{
  "hex": "#8a57cb",
  "rgb": {
    "r": 138,
    "g": 87,
    "b": 203
  },
  "hsl": {
    "h": 266.379,
    "s": 52.727,
    "l": 56.863
  },
  "oklch": {
    "l": 0.56766,
    "c": 0.17458,
    "h": 301.3
  },
  "luminance": 0.16531
}

Semantic roles & 50–950 ramp

primary
#8A57CB
secondary
#C2D7A7
accent
#DC4C9D
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8A57CB

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

Preview Lab → · Contrast checker → · Palette generator →

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