#8A4ED4#8A4ED4

#8A4ED4 is a mid, vivid violet. Relative luminance 0.156; OKLCH L 56.1% C 0.198 H 300.8°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#8A4ED4
RGBrgb(138, 78, 212)
HSLhsl(267, 61%, 57%)
HSVhsv(267, 63%, 83%)
CMYKcmyk(34.9%, 63.2%, 0%, 16.9%)
CIE-LABlab(46.45, 51.54, -59.83)
CIE-LCHlch(46.45, 78.96, 310.74°)
OKLaboklab(56.07% 0.1012 -0.17)
OKLCHoklch(56.07% 0.198 300.8)
XYZxyz(25.0864, 15.6054, 63.9651)
Luminance0.1561 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4ED4 #98D44E
analogous
#4E55D4 #8A4ED4 #CD4ED4
triadic
#8A4ED4 #D48A4E #4ED48A
tetradic
#8A4ED4 #D44E55 #98D44E #4ED4CD
square
#8A4ED4 #D44E55 #98D44E #4ED4CD
split-complementary
#8A4ED4 #D4CD4E #55D44E
monochromatic
#4E2187 #6B2DB8 #8A4ED4 #AB7FE0 #CBB0EC

Accessibility & contrast

On white

5.10
#8A4ED4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#8A4ED4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4ED4
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4ED4#FFFFFF#000000##FFFFFF
##8A4ED41.005.104.125.10
#FFFFFF5.101.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DD8
Deuteranopia (green-blind)
#176DD1
Tritanopia (blue-blind)
#7A6B8A
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #8a4ed4;
/* rgb */ color: rgb(138, 78, 212);
/* oklch */ color: oklch(56.1% 0.198 300.8);
Tailwind
colors: {
  custom: {
    50: '#b183e2',
    500: '#8a4ed4',
    950: '#000000',
  },
}
SCSS
$custom: #8a4ed4;
$custom-light: #b183e2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4ed4",
  "rgb": {
    "r": 138,
    "g": 78,
    "b": 212
  },
  "hsl": {
    "h": 266.866,
    "s": 60.909,
    "l": 56.863
  },
  "oklch": {
    "l": 0.56068,
    "c": 0.19785,
    "h": 300.8
  },
  "luminance": 0.15606
}

Semantic roles & 50–950 ramp

primary
#8A4ED4
secondary
#C2DAA4
accent
#E4449C
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8A4ED4

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

Preview Lab → · Contrast checker → · Palette generator →

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