#8A4EC2#8A4EC2

#8A4EC2 is a mid, vivid violet. Relative luminance 0.147; OKLCH L 54.8% C 0.177 H 305.1°. Best body text is #FFFFFF at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#8A4EC2
RGBrgb(138, 78, 194)
HSLhsl(271, 49%, 53%)
HSVhsv(271, 60%, 76%)
CMYKcmyk(28.9%, 59.8%, 0%, 23.9%)
CIE-LABlab(45.29, 47.15, -51.33)
CIE-LCHlch(45.29, 69.70, 312.57°)
OKLaboklab(54.85% 0.102 -0.1451)
OKLCHoklch(54.85% 0.177 305.1)
XYZxyz(22.9411, 14.7472, 52.6664)
Luminance0.1475 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4EC2 #86C24E
analogous
#504EC2 #8A4EC2 #C24EC0
triadic
#8A4EC2 #C28A4E #4EC28A
tetradic
#8A4EC2 #C2504E #86C24E #4EC0C2
square
#8A4EC2 #C2504E #86C24E #4EC0C2
split-complementary
#8A4EC2 #C0C24E #4EC250
monochromatic
#4C266F #6B369D #8A4EC2 #A87CD2 #C6A9E1

Accessibility & contrast

On white

5.32
#8A4EC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#8A4EC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4EC2
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4EC2#FFFFFF#000000##FFFFFF
##8A4EC21.005.323.955.32
#FFFFFF5.321.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1769C6
Deuteranopia (green-blind)
#356BBF
Tritanopia (blue-blind)
#806581
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #8a4ec2;
/* rgb */ color: rgb(138, 78, 194);
/* oklch */ color: oklch(54.8% 0.177 305.1);
Tailwind
colors: {
  custom: {
    50: '#b082d5',
    500: '#8a4ec2',
    950: '#000000',
  },
}
SCSS
$custom: #8a4ec2;
$custom-light: #b082d5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4ec2",
  "rgb": {
    "r": 138,
    "g": 78,
    "b": 194
  },
  "hsl": {
    "h": 271.034,
    "s": 48.739,
    "l": 53.333
  },
  "oklch": {
    "l": 0.54849,
    "c": 0.17734,
    "h": 305.1
  },
  "luminance": 0.14747
}

Semantic roles & 50–950 ramp

primary
#8A4EC2
secondary
#B5CF9D
accent
#D85092
background
#FBF8FD
surface
#F6EFFA
border
#D0CAD3
text
#110B14
muted
#807C83

Preview Lab

Preview with #8A4EC2

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

Preview Lab → · Contrast checker → · Palette generator →

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