#8A4ED7#8A4ED7

#8A4ED7 is a mid, highly saturated violet. Relative luminance 0.158; OKLCH L 56.3% C 0.201 H 300.1°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#8A4ED7
RGBrgb(138, 78, 215)
HSLhsl(266, 63%, 57%)
HSVhsv(266, 64%, 84%)
CMYKcmyk(35.8%, 63.7%, 0%, 15.7%)
CIE-LABlab(46.66, 52.28, -61.21)
CIE-LCHlch(46.66, 80.50, 310.50°)
OKLaboklab(56.28% 0.101 -0.1741)
OKLCHoklch(56.28% 0.201 300.1)
XYZxyz(25.4684, 15.7581, 65.9766)
Luminance0.1576 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4ED7 #9BD74E
analogous
#4E57D7 #8A4ED7 #CE4ED7
triadic
#8A4ED7 #D78A4E #4ED78A
tetradic
#8A4ED7 #D74E57 #9BD74E #4ED7CE
square
#8A4ED7 #D74E57 #9BD74E #4ED7CE
split-complementary
#8A4ED7 #D7CE4E #57D74E
monochromatic
#4F1F8B #6B2BBD #8A4ED7 #AB80E2 #CCB2EE

Accessibility & contrast

On white

5.06
#8A4ED7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#8A4ED7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4ED7
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4ED7#FFFFFF#000000##FFFFFF
##8A4ED71.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EDB
Deuteranopia (green-blind)
#0D6ED4
Tritanopia (blue-blind)
#796C8C
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #8a4ed7;
/* rgb */ color: rgb(138, 78, 215);
/* oklch */ color: oklch(56.3% 0.201 300.1);
Tailwind
colors: {
  custom: {
    50: '#b183e4',
    500: '#8a4ed7',
    950: '#000000',
  },
}
SCSS
$custom: #8a4ed7;
$custom-light: #b183e4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4ed7",
  "rgb": {
    "r": 138,
    "g": 78,
    "b": 215
  },
  "hsl": {
    "h": 266.277,
    "s": 63.134,
    "l": 57.451
  },
  "oklch": {
    "l": 0.56279,
    "c": 0.20124,
    "h": 300.1
  },
  "luminance": 0.15758
}

Semantic roles & 50–950 ramp

primary
#8A4ED7
secondary
#C4DCA5
accent
#E6429E
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #8A4ED7

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

Preview Lab → · Contrast checker → · Palette generator →

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