#8A57DB#8A57DB

#8A57DB is a mid, vivid violet. Relative luminance 0.173; OKLCH L 57.8% C 0.194 H 297.9°. Best body text is #FFFFFF at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#8A57DB
RGBrgb(138, 87, 219)
HSLhsl(263, 65%, 60%)
HSVhsv(263, 60%, 86%)
CMYKcmyk(37%, 60.3%, 0%, 14.1%)
CIE-LABlab(48.68, 48.57, -60.23)
CIE-LCHlch(48.68, 77.37, 308.88°)
OKLaboklab(57.83% 0.0905 -0.1712)
OKLCHoklch(57.83% 0.194 297.9)
XYZxyz(26.6724, 17.3338, 68.9446)
Luminance0.1733 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A57DB #A8DB57
analogous
#5766DB #8A57DB #CC57DB
triadic
#8A57DB #DB8A57 #57DB8A
tetradic
#8A57DB #DB5766 #A8DB57 #57DBCC
square
#8A57DB #DB5766 #A8DB57 #57DBCC
split-complementary
#8A57DB #DBCC57 #66DB57
monochromatic
#4E2097 #682BCA #8A57DB #AD89E6 #D0BCF1

Accessibility & contrast

On white

4.70
#8A57DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.47
#8A57DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A57DB
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A57DB#FFFFFF#000000##FFFFFF
##8A57DB1.004.704.474.70
#FFFFFF4.701.0021.001.00
#0000004.4721.001.0021.00
##FFFFFF4.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074DF
Deuteranopia (green-blind)
#1F72D8
Tritanopia (blue-blind)
#777491
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #8a57db;
/* rgb */ color: rgb(138, 87, 219);
/* oklch */ color: oklch(57.8% 0.194 297.9);
Tailwind
colors: {
  custom: {
    50: '#b189e7',
    500: '#8a57db',
    950: '#000000',
  },
}
SCSS
$custom: #8a57db;
$custom-light: #b189e7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a57db",
  "rgb": {
    "r": 138,
    "g": 87,
    "b": 219
  },
  "hsl": {
    "h": 263.182,
    "s": 64.706,
    "l": 60
  },
  "oklch": {
    "l": 0.57832,
    "c": 0.19364,
    "h": 297.9
  },
  "luminance": 0.17334
}

Semantic roles & 50–950 ramp

primary
#8A57DB
secondary
#CDE0AD
accent
#E840A7
background
#FBF8FE
surface
#F6F0FC
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #8A57DB

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

Preview Lab → · Contrast checker → · Palette generator →

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