#8A3ACD#8A3ACD

#8A3ACD is a mid, highly saturated violet. Relative luminance 0.128; OKLCH L 53.1% C 0.215 H 304.9°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#8A3ACD
RGBrgb(138, 58, 205)
HSLhsl(273, 60%, 52%)
HSVhsv(273, 72%, 80%)
CMYKcmyk(32.7%, 71.7%, 0%, 19.6%)
CIE-LABlab(42.52, 59.40, -62.17)
CIE-LCHlch(42.52, 85.99, 313.69°)
OKLaboklab(53.09% 0.1232 -0.1768)
OKLCHoklch(53.09% 0.216 304.9)
XYZxyz(23.0113, 12.8373, 59.0113)
Luminance0.1284 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3ACD #7DCD3A
analogous
#413ACD #8A3ACD #CD3AC7
triadic
#8A3ACD #CD8A3A #3ACD8A
tetradic
#8A3ACD #CD413A #7DCD3A #3AC7CD
square
#8A3ACD #CD413A #7DCD3A #3AC7CD
split-complementary
#8A3ACD #C7CD3A #3ACD41
monochromatic
#4A1C70 #6A29A1 #8A3ACD #A76BD9 #C49CE6

Accessibility & contrast

On white

5.89
#8A3ACD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#8A3ACD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3ACD
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3ACD#FFFFFF#000000##FFFFFF
##8A3ACD1.005.893.575.89
#FFFFFF5.891.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D1
Deuteranopia (green-blind)
#0064CA
Tritanopia (blue-blind)
#7D5D80
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8a3acd;
/* rgb */ color: rgb(138, 58, 205);
/* oklch */ color: oklch(53.1% 0.215 304.9);
Tailwind
colors: {
  custom: {
    50: '#b277dd',
    500: '#8a3acd',
    950: '#000000',
  },
}
SCSS
$custom: #8a3acd;
$custom-light: #b277dd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3acd",
  "rgb": {
    "r": 138,
    "g": 58,
    "b": 205
  },
  "hsl": {
    "h": 272.653,
    "s": 59.514,
    "l": 51.569
  },
  "oklch": {
    "l": 0.53094,
    "c": 0.2155,
    "h": 304.9
  },
  "luminance": 0.12837
}

Semantic roles & 50–950 ramp

primary
#8A3ACD
secondary
#AFD291
accent
#E3458D
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110915
muted
#807B83

Preview Lab

Preview with #8A3ACD

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

Preview Lab → · Contrast checker → · Palette generator →

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