#5D3FA4#5D3FA4

#5D3FA4 is a mid, vivid violet. Relative luminance 0.086; OKLCH L 45.7% C 0.156 H 292.9°. Best body text is #FFFFFF at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#5D3FA4
RGBrgb(93, 63, 164)
HSLhsl(258, 44%, 45%)
HSVhsv(258, 62%, 64%)
CMYKcmyk(43.3%, 61.6%, 0%, 35.7%)
CIE-LABlab(35.13, 37.18, -50.25)
CIE-LCHlch(35.13, 62.51, 306.50°)
OKLaboklab(45.66% 0.0605 -0.1433)
OKLCHoklch(45.66% 0.156 292.9)
XYZxyz(12.9907, 8.5621, 36.0830)
Luminance0.0856 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D3FA4 #86A43F
analogous
#3F54A4 #5D3FA4 #903FA4
triadic
#5D3FA4 #A45D3F #3FA45D
tetradic
#5D3FA4 #A43F54 #86A43F #3FA490
square
#5D3FA4 #A43F54 #86A43F #3FA490
split-complementary
#5D3FA4 #A4903F #54A43F
monochromatic
#2B1D4C #442E78 #5D3FA4 #7C5FC1 #A08BD2

Accessibility & contrast

On white

7.74
#5D3FA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#5D3FA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D3FA4
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D3FA4#FFFFFF#000000##FFFFFF
##5D3FA41.007.742.717.74
#FFFFFF7.741.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054A7
Deuteranopia (green-blind)
#0051A2
Tritanopia (blue-blind)
#49566B
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5d3fa4;
/* rgb */ color: rgb(93, 63, 164);
/* oklch */ color: oklch(45.7% 0.156 292.9);
Tailwind
colors: {
  custom: {
    50: '#9075c0',
    500: '#5d3fa4',
    950: '#000000',
  },
}
SCSS
$custom: #5d3fa4;
$custom-light: #9075c0;
$custom-dark: #000000;
JSON
{
  "hex": "#5d3fa4",
  "rgb": {
    "r": 93,
    "g": 63,
    "b": 164
  },
  "hsl": {
    "h": 257.822,
    "s": 44.493,
    "l": 44.51
  },
  "oklch": {
    "l": 0.45655,
    "c": 0.15557,
    "h": 292.9
  },
  "luminance": 0.08563
}

Semantic roles & 50–950 ramp

primary
#5D3FA4
secondary
#ABBD82
accent
#D454AE
background
#F9F7FB
surface
#F1EDF7
border
#CBC8D0
text
#0D0812
muted
#7E7B81

Preview Lab

Preview with #5D3FA4

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

Preview Lab → · Contrast checker → · Palette generator →

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