#8A5EC7#8A5EC7

#8A5EC7 is a mid, vivid violet. Relative luminance 0.175; OKLCH L 57.6% C 0.159 H 300.9°. Best body text is #FFFFFF at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#8A5EC7
RGBrgb(138, 94, 199)
HSLhsl(265, 48%, 57%)
HSVhsv(265, 53%, 78%)
CMYKcmyk(30.7%, 52.8%, 0%, 22%)
CIE-LABlab(48.92, 39.62, -48.40)
CIE-LCHlch(48.92, 62.55, 309.30°)
OKLaboklab(57.62% 0.0816 -0.1365)
OKLCHoklch(57.62% 0.159 300.9)
XYZxyz(24.7903, 17.5321, 56.0997)
Luminance0.1753 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5EC7 #9BC75E
analogous
#5E66C7 #8A5EC7 #BF5EC7
triadic
#8A5EC7 #C78A5E #5EC78A
tetradic
#8A5EC7 #C75E66 #9BC75E #5EC7BF
square
#8A5EC7 #C75E66 #9BC75E #5EC7BF
split-complementary
#8A5EC7 #C7BF5E #66C75E
monochromatic
#4F2C7F #6B3CAC #8A5EC7 #AB8BD7 #CCB9E7

Accessibility & contrast

On white

4.66
#8A5EC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.51
#8A5EC7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5EC7
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5EC7#FFFFFF#000000##FFFFFF
##8A5EC71.004.664.514.66
#FFFFFF4.661.0021.001.00
#0000004.5121.001.0021.00
##FFFFFF4.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3874CB
Deuteranopia (green-blind)
#4574C4
Tritanopia (blue-blind)
#7E728A
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #8a5ec7;
/* rgb */ color: rgb(138, 94, 199);
/* oklch */ color: oklch(57.6% 0.159 300.9);
Tailwind
colors: {
  custom: {
    50: '#af8dd8',
    500: '#8a5ec7',
    950: '#000000',
  },
}
SCSS
$custom: #8a5ec7;
$custom-light: #af8dd8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5ec7",
  "rgb": {
    "r": 138,
    "g": 94,
    "b": 199
  },
  "hsl": {
    "h": 265.143,
    "s": 48.387,
    "l": 57.451
  },
  "oklch": {
    "l": 0.57618,
    "c": 0.15904,
    "h": 300.9
  },
  "luminance": 0.17532
}

Semantic roles & 50–950 ramp

primary
#8A5EC7
secondary
#C4D6AB
accent
#D8509F
background
#FBF8FD
surface
#F6F0FA
border
#D0CBD3
text
#110C14
muted
#807D83

Preview Lab

Preview with #8A5EC7

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

Preview Lab → · Contrast checker → · Palette generator →

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