#8A5EC8#8A5EC8

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

Color values

HEX#8A5EC8
RGBrgb(138, 94, 200)
HSLhsl(265, 49%, 58%)
HSVhsv(265, 53%, 78%)
CMYKcmyk(31%, 53%, 0%, 21.6%)
CIE-LABlab(48.98, 39.87, -48.88)
CIE-LCHlch(48.98, 63.08, 309.20°)
OKLaboklab(57.68% 0.0817 -0.1379)
OKLCHoklch(57.68% 0.16 300.6)
XYZxyz(24.9068, 17.5787, 56.7132)
Luminance0.1758 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5EC8 #9CC85E
analogous
#5E67C8 #8A5EC8 #BF5EC8
triadic
#8A5EC8 #C88A5E #5EC88A
tetradic
#8A5EC8 #C85E67 #9CC85E #5EC8BF
square
#8A5EC8 #C85E67 #9CC85E #5EC8BF
split-complementary
#8A5EC8 #C8BF5E #67C85E
monochromatic
#4F2C80 #6B3BAE #8A5EC8 #AB8CD8 #CCB9E7

Accessibility & contrast

On white

4.65
#8A5EC8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.52
#8A5EC8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5EC8
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5EC8#FFFFFF#000000##FFFFFF
##8A5EC81.004.654.524.65
#FFFFFF4.651.0021.001.00
#0000004.5221.001.0021.00
##FFFFFF4.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3774CC
Deuteranopia (green-blind)
#4474C5
Tritanopia (blue-blind)
#7E728A
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #8a5ec8;
/* rgb */ color: rgb(138, 94, 200);
/* oklch */ color: oklch(57.7% 0.160 300.6);
Tailwind
colors: {
  custom: {
    50: '#af8dd9',
    500: '#8a5ec8',
    950: '#000000',
  },
}
SCSS
$custom: #8a5ec8;
$custom-light: #af8dd9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5ec8",
  "rgb": {
    "r": 138,
    "g": 94,
    "b": 200
  },
  "hsl": {
    "h": 264.906,
    "s": 49.074,
    "l": 57.647
  },
  "oklch": {
    "l": 0.57679,
    "c": 0.1603,
    "h": 300.6
  },
  "luminance": 0.17579
}

Semantic roles & 50–950 ramp

primary
#8A5EC8
secondary
#C5D6AC
accent
#D94FA0
background
#FBF8FD
surface
#F6F0FA
border
#D0CBD3
text
#110C15
muted
#807D83

Preview Lab

Preview with #8A5EC8

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

Preview Lab → · Contrast checker → · Palette generator →

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