#5D3FAC#5D3FAC

#5D3FAC is a mid, vivid violet. Relative luminance 0.089; OKLCH L 46.3% C 0.166 H 291.2°. Best body text is #FFFFFF at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#5D3FAC
RGBrgb(93, 63, 172)
HSLhsl(257, 46%, 46%)
HSVhsv(257, 63%, 67%)
CMYKcmyk(45.9%, 63.4%, 0%, 32.5%)
CIE-LABlab(35.71, 39.48, -54.09)
CIE-LCHlch(35.71, 66.97, 306.13°)
OKLaboklab(46.27% 0.06 -0.1546)
OKLCHoklch(46.27% 0.166 291.2)
XYZxyz(13.7360, 8.8603, 40.0082)
Luminance0.0886 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D3FAC #8EAC3F
analogous
#3F57AC #5D3FAC #933FAC
triadic
#5D3FAC #AC5D3F #3FAC5D
tetradic
#5D3FAC #AC3F57 #8EAC3F #3FAC93
square
#5D3FAC #AC3F57 #8EAC3F #3FAC93
split-complementary
#5D3FAC #AC933F #57AC3F
monochromatic
#2D1E52 #452F7F #5D3FAC #7E63C6 #A38FD6

Accessibility & contrast

On white

7.58
#5D3FAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#5D3FAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D3FAC
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D3FAC#FFFFFF#000000##FFFFFF
##5D3FAC1.007.582.777.58
#FFFFFF7.581.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056AF
Deuteranopia (green-blind)
#0052AA
Tritanopia (blue-blind)
#45586F
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5d3fac;
/* rgb */ color: rgb(93, 63, 172);
/* oklch */ color: oklch(46.3% 0.166 291.2);
Tailwind
colors: {
  custom: {
    50: '#9176c5',
    500: '#5d3fac',
    950: '#000000',
  },
}
SCSS
$custom: #5d3fac;
$custom-light: #9176c5;
$custom-dark: #000000;
JSON
{
  "hex": "#5d3fac",
  "rgb": {
    "r": 93,
    "g": 63,
    "b": 172
  },
  "hsl": {
    "h": 256.514,
    "s": 46.383,
    "l": 46.078
  },
  "oklch": {
    "l": 0.46267,
    "c": 0.16582,
    "h": 291.2
  },
  "luminance": 0.08861
}

Semantic roles & 50–950 ramp

primary
#5D3FAC
secondary
#B1C186
accent
#D652B2
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5D3FAC

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

Preview Lab → · Contrast checker → · Palette generator →

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