#8A4CDF#8A4CDF

#8A4CDF is a mid, highly saturated violet. Relative luminance 0.159; OKLCH L 56.6% C 0.213 H 298.7°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#8A4CDF
RGBrgb(138, 76, 223)
HSLhsl(265, 70%, 59%)
HSVhsv(265, 66%, 87%)
CMYKcmyk(38.1%, 65.9%, 0%, 12.5%)
CIE-LABlab(46.84, 55.28, -65.47)
CIE-LCHlch(46.84, 85.69, 310.18°)
OKLaboklab(56.59% 0.1023 -0.1866)
OKLCHoklch(56.59% 0.213 298.7)
XYZxyz(26.3816, 15.8995, 71.4767)
Luminance0.1590 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4CDF #A1DF4C
analogous
#4C57DF #8A4CDF #D34CDF
triadic
#8A4CDF #DF8A4C #4CDF8A
tetradic
#8A4CDF #DF4C57 #A1DF4C #4CDFD3
square
#8A4CDF #DF4C57 #A1DF4C #4CDFD3
split-complementary
#8A4CDF #DFD34C #57DF4C
monochromatic
#4F1B96 #6A24CA #8A4CDF #AC80E8 #CEB4F2

Accessibility & contrast

On white

5.02
#8A4CDF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#8A4CDF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4CDF
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4CDF#FFFFFF#000000##FFFFFF
##8A4CDF1.005.024.185.02
#FFFFFF5.021.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FE3
Deuteranopia (green-blind)
#006EDC
Tritanopia (blue-blind)
#766E8F
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #8a4cdf;
/* rgb */ color: rgb(138, 76, 223);
/* oklch */ color: oklch(56.6% 0.213 298.7);
Tailwind
colors: {
  custom: {
    50: '#b282ea',
    500: '#8a4cdf',
    950: '#000000',
  },
}
SCSS
$custom: #8a4cdf;
$custom-light: #b282ea;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4cdf",
  "rgb": {
    "r": 138,
    "g": 76,
    "b": 223
  },
  "hsl": {
    "h": 265.306,
    "s": 69.668,
    "l": 58.627
  },
  "oklch": {
    "l": 0.5659,
    "c": 0.2128,
    "h": 298.7
  },
  "luminance": 0.159
}

Semantic roles & 50–950 ramp

primary
#8A4CDF
secondary
#C8E0A6
accent
#EC3BA2
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #8A4CDF

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

Preview Lab → · Contrast checker → · Palette generator →

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