#8A4ED5#8A4ED5

#8A4ED5 is a mid, vivid violet. Relative luminance 0.157; OKLCH L 56.1% C 0.199 H 300.5°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#8A4ED5
RGBrgb(138, 78, 213)
HSLhsl(267, 62%, 57%)
HSVhsv(267, 63%, 84%)
CMYKcmyk(35.2%, 63.4%, 0%, 16.5%)
CIE-LABlab(46.52, 51.78, -60.29)
CIE-LCHlch(46.52, 79.48, 310.66°)
OKLaboklab(56.14% 0.1011 -0.1714)
OKLCHoklch(56.14% 0.199 300.5)
XYZxyz(25.2130, 15.6560, 64.6315)
Luminance0.1566 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4ED5 #99D54E
analogous
#4E55D5 #8A4ED5 #CE4ED5
triadic
#8A4ED5 #D58A4E #4ED58A
tetradic
#8A4ED5 #D54E55 #99D54E #4ED5CE
square
#8A4ED5 #D54E55 #99D54E #4ED5CE
split-complementary
#8A4ED5 #D5CE4E #55D54E
monochromatic
#4F2088 #6B2CBA #8A4ED5 #AB7FE1 #CBB1EC

Accessibility & contrast

On white

5.08
#8A4ED5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#8A4ED5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4ED5
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4ED5#FFFFFF#000000##FFFFFF
##8A4ED51.005.084.135.08
#FFFFFF5.081.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ED9
Deuteranopia (green-blind)
#146DD2
Tritanopia (blue-blind)
#7A6C8A
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #8a4ed5;
/* rgb */ color: rgb(138, 78, 213);
/* oklch */ color: oklch(56.1% 0.199 300.5);
Tailwind
colors: {
  custom: {
    50: '#b183e3',
    500: '#8a4ed5',
    950: '#000000',
  },
}
SCSS
$custom: #8a4ed5;
$custom-light: #b183e3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4ed5",
  "rgb": {
    "r": 138,
    "g": 78,
    "b": 213
  },
  "hsl": {
    "h": 266.667,
    "s": 61.644,
    "l": 57.059
  },
  "oklch": {
    "l": 0.56138,
    "c": 0.19898,
    "h": 300.5
  },
  "luminance": 0.15656
}

Semantic roles & 50–950 ramp

primary
#8A4ED5
secondary
#C2DBA4
accent
#E5439D
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#110B15
muted
#807C84

Preview Lab

Preview with #8A4ED5

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

Preview Lab → · Contrast checker → · Palette generator →

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