#5D3ACA#5D3ACA

#5D3ACA is a mid, highly saturated violet. Relative luminance 0.096; OKLCH L 48.1% C 0.209 H 286.8°. Best body text is #FFFFFF at 7.18:1 contrast (WCAG AA passes).

Color values

HEX#5D3ACA
RGBrgb(93, 58, 202)
HSLhsl(255, 58%, 51%)
HSVhsv(255, 71%, 79%)
CMYKcmyk(54%, 71.3%, 0%, 20.8%)
CIE-LABlab(37.15, 50.89, -69.41)
CIE-LCHlch(37.15, 86.06, 306.25°)
OKLaboklab(48.05% 0.0603 -0.1996)
OKLCHoklch(48.05% 0.209 286.8)
XYZxyz(16.6848, 9.6167, 56.8427)
Luminance0.0962 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D3ACA #A7CA3A
analogous
#3A5FCA #5D3ACA #A53ACA
triadic
#5D3ACA #CA5D3A #3ACA5D
tetradic
#5D3ACA #CA3A5F #A7CA3A #3ACAA5
square
#5D3ACA #CA3A5F #A7CA3A #3ACAA5
split-complementary
#5D3ACA #CAA53A #5FCA3A
monochromatic
#301D6C #462A9D #5D3ACA #856AD7 #AC9AE4

Accessibility & contrast

On white

7.18
#5D3ACA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#5D3ACA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D3ACA
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D3ACA#FFFFFF#000000##FFFFFF
##5D3ACA1.007.182.927.18
#FFFFFF7.181.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BCE
Deuteranopia (green-blind)
#0053C7
Tritanopia (blue-blind)
#2F607E
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5d3aca;
/* rgb */ color: rgb(93, 58, 202);
/* oklch */ color: oklch(48.1% 0.209 286.8);
Tailwind
colors: {
  custom: {
    50: '#9673db',
    500: '#5d3aca',
    950: '#000000',
  },
}
SCSS
$custom: #5d3aca;
$custom-light: #9673db;
$custom-dark: #000000;
JSON
{
  "hex": "#5d3aca",
  "rgb": {
    "r": 93,
    "g": 58,
    "b": 202
  },
  "hsl": {
    "h": 254.583,
    "s": 57.6,
    "l": 50.98
  },
  "oklch": {
    "l": 0.48052,
    "c": 0.20851,
    "h": 286.8
  },
  "luminance": 0.09618
}

Semantic roles & 50–950 ramp

primary
#5D3ACA
secondary
#C0D090
accent
#E147BB
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5D3ACA

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

Preview Lab → · Contrast checker → · Palette generator →

#5D3ACA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva