#8A4DCE#8A4DCE

#8A4DCE is a mid, vivid violet. Relative luminance 0.152; OKLCH L 55.5% C 0.192 H 302.3°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#8A4DCE
RGBrgb(138, 77, 206)
HSLhsl(268, 57%, 55%)
HSVhsv(268, 63%, 81%)
CMYKcmyk(33%, 62.6%, 0%, 19.2%)
CIE-LABlab(45.86, 50.58, -57.34)
CIE-LCHlch(45.86, 76.45, 311.42°)
OKLaboklab(55.51% 0.1027 -0.1627)
OKLCHoklch(55.51% 0.192 302.3)
XYZxyz(24.2731, 15.1672, 60.0293)
Luminance0.1517 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4DCE #91CE4D
analogous
#4D50CE #8A4DCE #CA4DCE
triadic
#8A4DCE #CE8A4D #4DCE8A
tetradic
#8A4DCE #CE4D50 #91CE4D #4DCECA
square
#8A4DCE #CE4D50 #91CE4D #4DCECA
split-complementary
#8A4DCE #CECA4D #50CE4D
monochromatic
#4E237E #6B30AE #8A4DCE #AA7DDB #C9ADE8

Accessibility & contrast

On white

5.21
#8A4DCE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#8A4DCE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4DCE
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4DCE#FFFFFF#000000##FFFFFF
##8A4DCE1.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD2
Deuteranopia (green-blind)
#236CCB
Tritanopia (blue-blind)
#7C6986
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #8a4dce;
/* rgb */ color: rgb(138, 77, 206);
/* oklch */ color: oklch(55.5% 0.192 302.3);
Tailwind
colors: {
  custom: {
    50: '#b182de',
    500: '#8a4dce',
    950: '#000000',
  },
}
SCSS
$custom: #8a4dce;
$custom-light: #b182de;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4dce",
  "rgb": {
    "r": 138,
    "g": 77,
    "b": 206
  },
  "hsl": {
    "h": 268.372,
    "s": 56.828,
    "l": 55.49
  },
  "oklch": {
    "l": 0.55514,
    "c": 0.19242,
    "h": 302.3
  },
  "luminance": 0.15167
}

Semantic roles & 50–950 ramp

primary
#8A4DCE
secondary
#BDD6A1
accent
#E04898
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8A4DCE

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

Preview Lab → · Contrast checker → · Palette generator →

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