#8A4CD1#8A4CD1

#8A4CD1 is a mid, vivid violet. Relative luminance 0.152; OKLCH L 55.6% C 0.197 H 301.7°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#8A4CD1
RGBrgb(138, 76, 209)
HSLhsl(268, 59%, 56%)
HSVhsv(268, 64%, 82%)
CMYKcmyk(34%, 63.6%, 0%, 18%)
CIE-LABlab(45.87, 51.82, -59.04)
CIE-LCHlch(45.87, 78.56, 311.27°)
OKLaboklab(55.59% 0.1037 -0.1677)
OKLCHoklch(55.59% 0.197 301.7)
XYZxyz(24.5716, 15.1755, 61.9439)
Luminance0.1518 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4CD1 #93D14C
analogous
#4C50D1 #8A4CD1 #CC4CD1
triadic
#8A4CD1 #D18A4C #4CD18A
tetradic
#8A4CD1 #D14C50 #93D14C #4CD1CC
square
#8A4CD1 #D14C50 #93D14C #4CD1CC
split-complementary
#8A4CD1 #D1CC4C #50D14C
monochromatic
#4E2181 #6B2EB2 #8A4CD1 #AA7DDE #CAADEA

Accessibility & contrast

On white

5.20
#8A4CD1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#8A4CD1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4CD1
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4CD1#FFFFFF#000000##FFFFFF
##8A4CD11.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD5
Deuteranopia (green-blind)
#1A6CCE
Tritanopia (blue-blind)
#7B6988
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #8a4cd1;
/* rgb */ color: rgb(138, 76, 209);
/* oklch */ color: oklch(55.6% 0.197 301.7);
Tailwind
colors: {
  custom: {
    50: '#b181e0',
    500: '#8a4cd1',
    950: '#000000',
  },
}
SCSS
$custom: #8a4cd1;
$custom-light: #b181e0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4cd1",
  "rgb": {
    "r": 138,
    "g": 76,
    "b": 209
  },
  "hsl": {
    "h": 267.97,
    "s": 59.111,
    "l": 55.882
  },
  "oklch": {
    "l": 0.55586,
    "c": 0.19716,
    "h": 301.7
  },
  "luminance": 0.15176
}

Semantic roles & 50–950 ramp

primary
#8A4CD1
secondary
#BED8A1
accent
#E24699
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8A4CD1

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

Preview Lab → · Contrast checker → · Palette generator →

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