#8A57D9#8A57D9

#8A57D9 is a mid, vivid violet. Relative luminance 0.172; OKLCH L 57.7% C 0.191 H 298.3°. Best body text is #FFFFFF at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#8A57D9
RGBrgb(138, 87, 217)
HSLhsl(264, 63%, 60%)
HSVhsv(264, 60%, 85%)
CMYKcmyk(36.4%, 59.9%, 0%, 14.9%)
CIE-LABlab(48.55, 48.05, -59.30)
CIE-LCHlch(48.55, 76.33, 309.02°)
OKLaboklab(57.69% 0.0906 -0.1685)
OKLCHoklch(57.69% 0.191 298.3)
XYZxyz(26.4107, 17.2291, 67.5663)
Luminance0.1723 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A57D9 #A6D957
analogous
#5765D9 #8A57D9 #CB57D9
triadic
#8A57D9 #D98A57 #57D98A
tetradic
#8A57D9 #D95765 #A6D957 #57D9CB
square
#8A57D9 #D95765 #A6D957 #57D9CB
split-complementary
#8A57D9 #D9CB57 #65D957
monochromatic
#4E2194 #692DC6 #8A57D9 #AD89E4 #D0BBF0

Accessibility & contrast

On white

4.72
#8A57D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.45
#8A57D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A57D9
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A57D9#FFFFFF#000000##FFFFFF
##8A57D91.004.724.454.72
#FFFFFF4.721.0021.001.00
#0000004.4521.001.0021.00
##FFFFFF4.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073DD
Deuteranopia (green-blind)
#2372D6
Tritanopia (blue-blind)
#787390
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #8a57d9;
/* rgb */ color: rgb(138, 87, 217);
/* oklch */ color: oklch(57.7% 0.191 298.3);
Tailwind
colors: {
  custom: {
    50: '#b189e5',
    500: '#8a57d9',
    950: '#000000',
  },
}
SCSS
$custom: #8a57d9;
$custom-light: #b189e5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a57d9",
  "rgb": {
    "r": 138,
    "g": 87,
    "b": 217
  },
  "hsl": {
    "h": 263.538,
    "s": 63.107,
    "l": 59.608
  },
  "oklch": {
    "l": 0.57695,
    "c": 0.19128,
    "h": 298.3
  },
  "luminance": 0.17229
}

Semantic roles & 50–950 ramp

primary
#8A57D9
secondary
#CBDFAD
accent
#E642A6
background
#FBF8FE
surface
#F6F0FC
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #8A57D9

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

Preview Lab → · Contrast checker → · Palette generator →

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