#8A5EC5#8A5EC5

#8A5EC5 is a mid, vivid violet. Relative luminance 0.174; OKLCH L 57.5% C 0.157 H 301.4°. Best body text is #FFFFFF at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#8A5EC5
RGBrgb(138, 94, 197)
HSLhsl(266, 47%, 57%)
HSVhsv(266, 52%, 77%)
CMYKcmyk(29.9%, 52.3%, 0%, 22.7%)
CIE-LABlab(48.81, 39.12, -47.43)
CIE-LCHlch(48.81, 61.48, 309.51°)
OKLaboklab(57.5% 0.0815 -0.1337)
OKLCHoklch(57.5% 0.157 301.4)
XYZxyz(24.5597, 17.4398, 54.8848)
Luminance0.1744 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5EC5 #99C55E
analogous
#5E66C5 #8A5EC5 #BE5EC5
triadic
#8A5EC5 #C58A5E #5EC58A
tetradic
#8A5EC5 #C55E66 #99C55E #5EC5BE
square
#8A5EC5 #C55E66 #99C55E #5EC5BE
split-complementary
#8A5EC5 #C5BE5E #66C55E
monochromatic
#4F2D7C #6B3DA9 #8A5EC5 #AB8BD5 #CBB8E5

Accessibility & contrast

On white

4.68
#8A5EC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.49
#8A5EC5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5EC5
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5EC5#FFFFFF#000000##FFFFFF
##8A5EC51.004.684.494.68
#FFFFFF4.681.0021.001.00
#0000004.4921.001.0021.00
##FFFFFF4.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A73C9
Deuteranopia (green-blind)
#4773C3
Tritanopia (blue-blind)
#7F7189
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #8a5ec5;
/* rgb */ color: rgb(138, 94, 197);
/* oklch */ color: oklch(57.5% 0.157 301.4);
Tailwind
colors: {
  custom: {
    50: '#af8dd7',
    500: '#8a5ec5',
    950: '#000000',
  },
}
SCSS
$custom: #8a5ec5;
$custom-light: #af8dd7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5ec5",
  "rgb": {
    "r": 138,
    "g": 94,
    "b": 197
  },
  "hsl": {
    "h": 265.631,
    "s": 47.032,
    "l": 57.059
  },
  "oklch": {
    "l": 0.57497,
    "c": 0.15654,
    "h": 301.4
  },
  "luminance": 0.1744
}

Semantic roles & 50–950 ramp

primary
#8A5EC5
secondary
#C2D4AA
accent
#D7519E
background
#FBF8FD
surface
#F6F0FA
border
#D0CBD3
text
#110C14
muted
#807D83

Preview Lab

Preview with #8A5EC5

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

Preview Lab → · Contrast checker → · Palette generator →

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