#8A4EC0#8A4EC0

#8A4EC0 is a mid, vivid violet. Relative luminance 0.147; OKLCH L 54.7% C 0.175 H 305.7°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#8A4EC0
RGBrgb(138, 78, 192)
HSLhsl(272, 48%, 53%)
HSVhsv(272, 59%, 75%)
CMYKcmyk(28.1%, 59.4%, 0%, 24.7%)
CIE-LABlab(45.16, 46.67, -50.37)
CIE-LCHlch(45.16, 68.67, 312.82°)
OKLaboklab(54.72% 0.102 -0.1422)
OKLCHoklch(54.72% 0.175 305.7)
XYZxyz(22.7180, 14.6580, 51.4914)
Luminance0.1466 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4EC0 #84C04E
analogous
#514EC0 #8A4EC0 #C04EBD
triadic
#8A4EC0 #C08A4E #4EC08A
tetradic
#8A4EC0 #C0514E #84C04E #4EBDC0
square
#8A4EC0 #C0514E #84C04E #4EBDC0
split-complementary
#8A4EC0 #BDC04E #4EC051
monochromatic
#4C276D #6B379A #8A4EC0 #A87BD0 #C6A8E0

Accessibility & contrast

On white

5.34
#8A4EC0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#8A4EC0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4EC0
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4EC0#FFFFFF#000000##FFFFFF
##8A4EC01.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B69C4
Deuteranopia (green-blind)
#376BBD
Tritanopia (blue-blind)
#816580
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #8a4ec0;
/* rgb */ color: rgb(138, 78, 192);
/* oklch */ color: oklch(54.7% 0.175 305.7);
Tailwind
colors: {
  custom: {
    50: '#b082d4',
    500: '#8a4ec0',
    950: '#000000',
  },
}
SCSS
$custom: #8a4ec0;
$custom-light: #b082d4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4ec0",
  "rgb": {
    "r": 138,
    "g": 78,
    "b": 192
  },
  "hsl": {
    "h": 271.579,
    "s": 47.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.54719,
    "c": 0.17504,
    "h": 305.7
  },
  "luminance": 0.14658
}

Semantic roles & 50–950 ramp

primary
#8A4EC0
secondary
#B4CE9C
accent
#D75190
background
#FBF8FD
surface
#F6EFFA
border
#D0CAD3
text
#110B14
muted
#807C83

Preview Lab

Preview with #8A4EC0

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

Preview Lab → · Contrast checker → · Palette generator →

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