#5D3FA2#5D3FA2

#5D3FA2 is a mid, vivid violet. Relative luminance 0.085; OKLCH L 45.5% C 0.153 H 293.3°. Best body text is #FFFFFF at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#5D3FA2
RGBrgb(93, 63, 162)
HSLhsl(258, 44%, 44%)
HSVhsv(258, 61%, 64%)
CMYKcmyk(42.6%, 61.1%, 0%, 36.5%)
CIE-LABlab(34.98, 36.60, -49.28)
CIE-LCHlch(34.98, 61.39, 306.60°)
OKLaboklab(45.51% 0.0606 -0.1405)
OKLCHoklch(45.51% 0.153 293.3)
XYZxyz(12.8115, 8.4905, 35.1392)
Luminance0.0849 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D3FA2 #84A23F
analogous
#3F53A2 #5D3FA2 #8F3FA2
triadic
#5D3FA2 #A25D3F #3FA25D
tetradic
#5D3FA2 #A23F53 #84A23F #3FA28F
square
#5D3FA2 #A23F53 #84A23F #3FA28F
split-complementary
#5D3FA2 #A28F3F #53A23F
monochromatic
#2A1D4A #442E76 #5D3FA2 #7C5EC0 #A08AD1

Accessibility & contrast

On white

7.78
#5D3FA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#5D3FA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D3FA2
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D3FA2#FFFFFF#000000##FFFFFF
##5D3FA21.007.782.707.78
#FFFFFF7.781.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053A5
Deuteranopia (green-blind)
#0250A0
Tritanopia (blue-blind)
#4A556A
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5d3fa2;
/* rgb */ color: rgb(93, 63, 162);
/* oklch */ color: oklch(45.5% 0.153 293.3);
Tailwind
colors: {
  custom: {
    50: '#9075be',
    500: '#5d3fa2',
    950: '#000000',
  },
}
SCSS
$custom: #5d3fa2;
$custom-light: #9075be;
$custom-dark: #000000;
JSON
{
  "hex": "#5d3fa2",
  "rgb": {
    "r": 93,
    "g": 63,
    "b": 162
  },
  "hsl": {
    "h": 258.182,
    "s": 44,
    "l": 44.118
  },
  "oklch": {
    "l": 0.45505,
    "c": 0.15298,
    "h": 293.3
  },
  "luminance": 0.08491
}

Semantic roles & 50–950 ramp

primary
#5D3FA2
secondary
#AABC81
accent
#D454AD
background
#F9F7FB
surface
#F1EDF7
border
#CBC8D0
text
#0D0812
muted
#7E7B81

Preview Lab

Preview with #5D3FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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