#5D3EA2#5D3EA2

#5D3EA2 is a mid, vivid violet. Relative luminance 0.084; OKLCH L 45.3% C 0.154 H 293.6°. Best body text is #FFFFFF at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#5D3EA2
RGBrgb(93, 62, 162)
HSLhsl(259, 45%, 44%)
HSVhsv(259, 62%, 64%)
CMYKcmyk(42.6%, 61.7%, 0%, 36.5%)
CIE-LABlab(34.76, 37.19, -49.64)
CIE-LCHlch(34.76, 62.02, 306.84°)
OKLaboklab(45.34% 0.0618 -0.1415)
OKLCHoklch(45.34% 0.154 293.6)
XYZxyz(12.7567, 8.3807, 35.1209)
Luminance0.0838 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D3EA2 #83A23E
analogous
#3E51A2 #5D3EA2 #8F3EA2
triadic
#5D3EA2 #A25D3E #3EA25D
tetradic
#5D3EA2 #A23E51 #83A23E #3EA28F
square
#5D3EA2 #A23E51 #83A23E #3EA28F
split-complementary
#5D3EA2 #A28F3E #51A23E
monochromatic
#2A1C49 #442D76 #5D3EA2 #7C5CC1 #9F89D2

Accessibility & contrast

On white

7.85
#5D3EA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#5D3EA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D3EA2
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D3EA2#FFFFFF#000000##FFFFFF
##5D3EA21.007.852.687.85
#FFFFFF7.851.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.851.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5d3ea2;
/* rgb */ color: rgb(93, 62, 162);
/* oklch */ color: oklch(45.3% 0.154 293.6);
Tailwind
colors: {
  custom: {
    50: '#9075be',
    500: '#5d3ea2',
    950: '#000000',
  },
}
SCSS
$custom: #5d3ea2;
$custom-light: #9075be;
$custom-dark: #000000;
JSON
{
  "hex": "#5d3ea2",
  "rgb": {
    "r": 93,
    "g": 62,
    "b": 162
  },
  "hsl": {
    "h": 258.6,
    "s": 44.643,
    "l": 43.922
  },
  "oklch": {
    "l": 0.45344,
    "c": 0.15442,
    "h": 293.6
  },
  "luminance": 0.08381
}

Semantic roles & 50–950 ramp

primary
#5D3EA2
secondary
#A9BC80
accent
#D453AC
background
#F9F7FB
surface
#F1EDF7
border
#CBC8D0
text
#0D0812
muted
#7E7B81

Preview Lab

Preview with #5D3EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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