#8A4CD3#8A4CD3

#8A4CD3 is a mid, vivid violet. Relative luminance 0.153; OKLCH L 55.7% C 0.199 H 301.3°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#8A4CD3
RGBrgb(138, 76, 211)
HSLhsl(268, 61%, 56%)
HSVhsv(268, 64%, 83%)
CMYKcmyk(34.6%, 64%, 0%, 17.3%)
CIE-LABlab(46.01, 52.31, -59.97)
CIE-LCHlch(46.01, 79.58, 311.10°)
OKLaboklab(55.73% 0.1035 -0.1704)
OKLCHoklch(55.73% 0.199 301.3)
XYZxyz(24.8207, 15.2752, 63.2561)
Luminance0.1527 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4CD3 #95D34C
analogous
#4C52D3 #8A4CD3 #CE4CD3
triadic
#8A4CD3 #D38A4C #4CD38A
tetradic
#8A4CD3 #D34C52 #95D34C #4CD3CE
square
#8A4CD3 #D34C52 #95D34C #4CD3CE
split-complementary
#8A4CD3 #D3CE4C #52D34C
monochromatic
#4E2084 #6B2DB5 #8A4CD3 #AA7DDF #CAAEEB

Accessibility & contrast

On white

5.18
#8A4CD3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#8A4CD3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4CD3
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4CD3#FFFFFF#000000##FFFFFF
##8A4CD31.005.184.065.18
#FFFFFF5.181.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD7
Deuteranopia (green-blind)
#146CD0
Tritanopia (blue-blind)
#7B6A89
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #8a4cd3;
/* rgb */ color: rgb(138, 76, 211);
/* oklch */ color: oklch(55.7% 0.199 301.3);
Tailwind
colors: {
  custom: {
    50: '#b182e1',
    500: '#8a4cd3',
    950: '#000000',
  },
}
SCSS
$custom: #8a4cd3;
$custom-light: #b182e1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4cd3",
  "rgb": {
    "r": 138,
    "g": 76,
    "b": 211
  },
  "hsl": {
    "h": 267.556,
    "s": 60.538,
    "l": 56.275
  },
  "oklch": {
    "l": 0.55726,
    "c": 0.19941,
    "h": 301.3
  },
  "luminance": 0.15275
}

Semantic roles & 50–950 ramp

primary
#8A4CD3
secondary
#C0D9A2
accent
#E4449A
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8A4CD3

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

Preview Lab → · Contrast checker → · Palette generator →

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