#5D3ACB#5D3ACB

#5D3ACB is a mid, highly saturated violet. Relative luminance 0.097; OKLCH L 48.1% C 0.210 H 286.7°. Best body text is #FFFFFF at 7.16:1 contrast (WCAG AA passes).

Color values

HEX#5D3ACB
RGBrgb(93, 58, 203)
HSLhsl(254, 58%, 51%)
HSVhsv(254, 71%, 80%)
CMYKcmyk(54.2%, 71.4%, 0%, 20.4%)
CIE-LABlab(37.23, 51.17, -69.85)
CIE-LCHlch(37.23, 86.59, 306.23°)
OKLaboklab(48.14% 0.0601 -0.2009)
OKLCHoklch(48.14% 0.21 286.7)
XYZxyz(16.8035, 9.6642, 57.4683)
Luminance0.0966 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D3ACB #A8CB3A
analogous
#3A5FCB #5D3ACB #A53ACB
triadic
#5D3ACB #CB5D3A #3ACB5D
tetradic
#5D3ACB #CB3A5F #A8CB3A #3ACBA5
square
#5D3ACB #CB3A5F #A8CB3A #3ACBA5
split-complementary
#5D3ACB #CBA53A #5FCB3A
monochromatic
#301D6E #462A9E #5D3ACB #856AD8 #AD9BE5

Accessibility & contrast

On white

7.16
#5D3ACB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#5D3ACB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D3ACB
7.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D3ACB#FFFFFF#000000##FFFFFF
##5D3ACB1.007.162.937.16
#FFFFFF7.161.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BCF
Deuteranopia (green-blind)
#0053C8
Tritanopia (blue-blind)
#2E617F
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5d3acb;
/* rgb */ color: rgb(93, 58, 203);
/* oklch */ color: oklch(48.1% 0.210 286.7);
Tailwind
colors: {
  custom: {
    50: '#9673dc',
    500: '#5d3acb',
    950: '#000000',
  },
}
SCSS
$custom: #5d3acb;
$custom-light: #9673dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5d3acb",
  "rgb": {
    "r": 93,
    "g": 58,
    "b": 203
  },
  "hsl": {
    "h": 254.483,
    "s": 58.233,
    "l": 51.176
  },
  "oklch": {
    "l": 0.48141,
    "c": 0.20968,
    "h": 286.7
  },
  "luminance": 0.09665
}

Semantic roles & 50–950 ramp

primary
#5D3ACB
secondary
#C1D090
accent
#E146BC
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0815
muted
#7E7B83

Preview Lab

Preview with #5D3ACB

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

Preview Lab → · Contrast checker → · Palette generator →

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