#8A4ED3#8A4ED3

#8A4ED3 is a mid, vivid violet. Relative luminance 0.156; OKLCH L 56.0% C 0.197 H 301.0°. Best body text is #FFFFFF at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#8A4ED3
RGBrgb(138, 78, 211)
HSLhsl(267, 60%, 57%)
HSVhsv(267, 63%, 83%)
CMYKcmyk(34.6%, 63%, 0%, 17.3%)
CIE-LABlab(46.39, 51.29, -59.36)
CIE-LCHlch(46.39, 78.45, 310.83°)
OKLaboklab(56% 0.1013 -0.1686)
OKLCHoklch(56% 0.197 301)
XYZxyz(24.9607, 15.5551, 63.3028)
Luminance0.1555 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4ED3 #97D34E
analogous
#4E55D3 #8A4ED3 #CD4ED3
triadic
#8A4ED3 #D38A4E #4ED38A
tetradic
#8A4ED3 #D34E55 #97D34E #4ED3CD
square
#8A4ED3 #D34E55 #97D34E #4ED3CD
split-complementary
#8A4ED3 #D3CD4E #55D34E
monochromatic
#4E2185 #6B2DB6 #8A4ED3 #AA7FDF #CBB0EB

Accessibility & contrast

On white

5.11
#8A4ED3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#8A4ED3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4ED3
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4ED3#FFFFFF#000000##FFFFFF
##8A4ED31.005.114.115.11
#FFFFFF5.111.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DD7
Deuteranopia (green-blind)
#1A6DD0
Tritanopia (blue-blind)
#7B6B89
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #8a4ed3;
/* rgb */ color: rgb(138, 78, 211);
/* oklch */ color: oklch(56.0% 0.197 301.0);
Tailwind
colors: {
  custom: {
    50: '#b183e1',
    500: '#8a4ed3',
    950: '#000000',
  },
}
SCSS
$custom: #8a4ed3;
$custom-light: #b183e1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4ed3",
  "rgb": {
    "r": 138,
    "g": 78,
    "b": 211
  },
  "hsl": {
    "h": 267.068,
    "s": 60.181,
    "l": 56.667
  },
  "oklch": {
    "l": 0.55998,
    "c": 0.19671,
    "h": 301
  },
  "luminance": 0.15555
}

Semantic roles & 50–950 ramp

primary
#8A4ED3
secondary
#C1DAA3
accent
#E3449C
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8A4ED3

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

Preview Lab → · Contrast checker → · Palette generator →

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