#8A5EC2#8A5EC2

#8A5EC2 is a mid, vivid violet. Relative luminance 0.173; OKLCH L 57.3% C 0.153 H 302.1°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#8A5EC2
RGBrgb(138, 94, 194)
HSLhsl(266, 45%, 56%)
HSVhsv(266, 52%, 76%)
CMYKcmyk(28.9%, 51.5%, 0%, 23.9%)
CIE-LABlab(48.64, 38.37, -45.97)
CIE-LCHlch(48.64, 59.88, 309.85°)
OKLaboklab(57.32% 0.0813 -0.1294)
OKLCHoklch(57.32% 0.153 302.1)
XYZxyz(24.2193, 17.3037, 53.0925)
Luminance0.1730 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5EC2 #96C25E
analogous
#5E64C2 #8A5EC2 #BC5EC2
triadic
#8A5EC2 #C28A5E #5EC28A
tetradic
#8A5EC2 #C25E64 #96C25E #5EC2BC
square
#8A5EC2 #C25E64 #96C25E #5EC2BC
split-complementary
#8A5EC2 #C2BC5E #64C25E
monochromatic
#4E2E78 #6B3EA4 #8A5EC2 #AA8AD3 #CBB7E4

Accessibility & contrast

On white

4.71
#8A5EC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#8A5EC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5EC2
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5EC2#FFFFFF#000000##FFFFFF
##8A5EC21.004.714.464.71
#FFFFFF4.711.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D73C5
Deuteranopia (green-blind)
#4973C0
Tritanopia (blue-blind)
#807187
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #8a5ec2;
/* rgb */ color: rgb(138, 94, 194);
/* oklch */ color: oklch(57.3% 0.153 302.1);
Tailwind
colors: {
  custom: {
    50: '#af8dd5',
    500: '#8a5ec2',
    950: '#000000',
  },
}
SCSS
$custom: #8a5ec2;
$custom-light: #af8dd5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5ec2",
  "rgb": {
    "r": 138,
    "g": 94,
    "b": 194
  },
  "hsl": {
    "h": 266.4,
    "s": 45.045,
    "l": 56.471
  },
  "oklch": {
    "l": 0.57317,
    "c": 0.1528,
    "h": 302.1
  },
  "luminance": 0.17304
}

Semantic roles & 50–950 ramp

primary
#8A5EC2
secondary
#C0D2A9
accent
#D5539C
background
#FBF8FD
surface
#F6F0FA
border
#D0CBD3
text
#110C14
muted
#807D83

Preview Lab

Preview with #8A5EC2

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

Preview Lab → · Contrast checker → · Palette generator →

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