#8A5EC9#8A5EC9

#8A5EC9 is a mid, vivid violet. Relative luminance 0.176; OKLCH L 57.7% C 0.162 H 300.4°. Best body text is #FFFFFF at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#8A5EC9
RGBrgb(138, 94, 201)
HSLhsl(265, 50%, 58%)
HSVhsv(265, 53%, 79%)
CMYKcmyk(31.3%, 53.2%, 0%, 21.2%)
CIE-LABlab(49.04, 40.12, -49.36)
CIE-LCHlch(49.04, 63.61, 309.10°)
OKLaboklab(57.74% 0.0817 -0.1393)
OKLCHoklch(57.74% 0.162 300.4)
XYZxyz(25.0241, 17.6256, 57.3307)
Luminance0.1763 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5EC9 #9DC95E
analogous
#5E67C9 #8A5EC9 #BF5EC9
triadic
#8A5EC9 #C98A5E #5EC98A
tetradic
#8A5EC9 #C95E67 #9DC95E #5EC9BF
square
#8A5EC9 #C95E67 #9DC95E #5EC9BF
split-complementary
#8A5EC9 #C9BF5E #67C95E
monochromatic
#4F2B81 #6B3BAF #8A5EC9 #AB8CD8 #CDBAE8

Accessibility & contrast

On white

4.64
#8A5EC9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.53
#8A5EC9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5EC9
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5EC9#FFFFFF#000000##FFFFFF
##8A5EC91.004.644.534.64
#FFFFFF4.641.0021.001.00
#0000004.5321.001.0021.00
##FFFFFF4.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3674CD
Deuteranopia (green-blind)
#4374C6
Tritanopia (blue-blind)
#7D738A
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #8a5ec9;
/* rgb */ color: rgb(138, 94, 201);
/* oklch */ color: oklch(57.7% 0.162 300.4);
Tailwind
colors: {
  custom: {
    50: '#af8dda',
    500: '#8a5ec9',
    950: '#000000',
  },
}
SCSS
$custom: #8a5ec9;
$custom-light: #af8dda;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5ec9",
  "rgb": {
    "r": 138,
    "g": 94,
    "b": 201
  },
  "hsl": {
    "h": 264.673,
    "s": 49.767,
    "l": 57.843
  },
  "oklch": {
    "l": 0.57741,
    "c": 0.16154,
    "h": 300.4
  },
  "luminance": 0.17626
}

Semantic roles & 50–950 ramp

primary
#8A5EC9
secondary
#C5D7AC
accent
#D94FA0
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#110C15
muted
#807D83

Preview Lab

Preview with #8A5EC9

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

Preview Lab → · Contrast checker → · Palette generator →

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