#8A4EDB#8A4EDB

#8A4EDB is a mid, highly saturated violet. Relative luminance 0.160; OKLCH L 56.6% C 0.206 H 299.3°. Best body text is #FFFFFF at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#8A4EDB
RGBrgb(138, 78, 219)
HSLhsl(266, 66%, 58%)
HSVhsv(266, 64%, 86%)
CMYKcmyk(37%, 64.4%, 0%, 14.1%)
CIE-LABlab(46.93, 53.28, -63.05)
CIE-LCHlch(46.93, 82.55, 310.20°)
OKLaboklab(56.57% 0.1006 -0.1795)
OKLCHoklch(56.57% 0.206 299.3)
XYZxyz(25.9886, 15.9662, 68.7167)
Luminance0.1597 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4EDB #9FDB4E
analogous
#4E58DB #8A4EDB #D04EDB
triadic
#8A4EDB #DB8A4E #4EDB8A
tetradic
#8A4EDB #DB4E58 #9FDB4E #4EDBD0
square
#8A4EDB #DB4E58 #9FDB4E #4EDBD0
split-complementary
#8A4EDB #DBD04E #58DB4E
monochromatic
#4F1E91 #6A28C4 #8A4EDB #AC81E5 #CDB4F0

Accessibility & contrast

On white

5.01
#8A4EDB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#8A4EDB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4EDB
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4EDB#FFFFFF#000000##FFFFFF
##8A4EDB1.005.014.195.01
#FFFFFF5.011.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FDF
Deuteranopia (green-blind)
#006ED8
Tritanopia (blue-blind)
#786E8E
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #8a4edb;
/* rgb */ color: rgb(138, 78, 219);
/* oklch */ color: oklch(56.6% 0.206 299.3);
Tailwind
colors: {
  custom: {
    50: '#b283e7',
    500: '#8a4edb',
    950: '#000000',
  },
}
SCSS
$custom: #8a4edb;
$custom-light: #b283e7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4edb",
  "rgb": {
    "r": 138,
    "g": 78,
    "b": 219
  },
  "hsl": {
    "h": 265.532,
    "s": 66.197,
    "l": 58.235
  },
  "oklch": {
    "l": 0.56565,
    "c": 0.20576,
    "h": 299.3
  },
  "luminance": 0.15967
}

Semantic roles & 50–950 ramp

primary
#8A4EDB
secondary
#C7DEA6
accent
#E93FA1
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #8A4EDB

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

Preview Lab → · Contrast checker → · Palette generator →

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