#8A4EC1#8A4EC1

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

Color values

HEX#8A4EC1
RGBrgb(138, 78, 193)
HSLhsl(271, 48%, 53%)
HSVhsv(271, 60%, 76%)
CMYKcmyk(28.5%, 59.6%, 0%, 24.3%)
CIE-LABlab(45.22, 46.91, -50.85)
CIE-LCHlch(45.22, 69.18, 312.69°)
OKLaboklab(54.78% 0.102 -0.1436)
OKLCHoklch(54.78% 0.176 305.4)
XYZxyz(22.8292, 14.7025, 52.0769)
Luminance0.1470 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4EC1 #85C14E
analogous
#504EC1 #8A4EC1 #C14EBF
triadic
#8A4EC1 #C18A4E #4EC18A
tetradic
#8A4EC1 #C1504E #85C14E #4EBFC1
square
#8A4EC1 #C1504E #85C14E #4EBFC1
split-complementary
#8A4EC1 #BFC14E #4EC150
monochromatic
#4C276E #6B369B #8A4EC1 #A87BD1 #C6A9E1

Accessibility & contrast

On white

5.33
#8A4EC1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#8A4EC1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4EC1
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4EC1#FFFFFF#000000##FFFFFF
##8A4EC11.005.333.945.33
#FFFFFF5.331.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1969C5
Deuteranopia (green-blind)
#366BBE
Tritanopia (blue-blind)
#816580
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #8a4ec1;
/* rgb */ color: rgb(138, 78, 193);
/* oklch */ color: oklch(54.8% 0.176 305.4);
Tailwind
colors: {
  custom: {
    50: '#b082d4',
    500: '#8a4ec1',
    950: '#000000',
  },
}
SCSS
$custom: #8a4ec1;
$custom-light: #b082d4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4ec1",
  "rgb": {
    "r": 138,
    "g": 78,
    "b": 193
  },
  "hsl": {
    "h": 271.304,
    "s": 48.117,
    "l": 53.137
  },
  "oklch": {
    "l": 0.54784,
    "c": 0.17619,
    "h": 305.4
  },
  "luminance": 0.14702
}

Semantic roles & 50–950 ramp

primary
#8A4EC1
secondary
#B4CE9D
accent
#D85091
background
#FBF8FD
surface
#F6EFFA
border
#D0CAD3
text
#110B14
muted
#807C83

Preview Lab

Preview with #8A4EC1

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

Preview Lab → · Contrast checker → · Palette generator →

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