#5D3DAF#5D3DAF

#5D3DAF is a mid, vivid violet. Relative luminance 0.088; OKLCH L 46.2% C 0.172 H 291.0°. Best body text is #FFFFFF at 7.63:1 contrast (WCAG AA passes).

Color values

HEX#5D3DAF
RGBrgb(93, 61, 175)
HSLhsl(257, 48%, 46%)
HSVhsv(257, 65%, 69%)
CMYKcmyk(46.9%, 65.1%, 0%, 31.4%)
CIE-LABlab(35.52, 41.49, -56.19)
CIE-LCHlch(35.52, 69.85, 306.44°)
OKLaboklab(46.2% 0.0618 -0.1608)
OKLCHoklch(46.2% 0.172 291)
XYZxyz(13.9186, 8.7593, 41.5065)
Luminance0.0876 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D3DAF #8FAF3D
analogous
#3D56AF #5D3DAF #963DAF
triadic
#5D3DAF #AF5D3D #3DAF5D
tetradic
#5D3DAF #AF3D56 #8FAF3D #3DAF96
square
#5D3DAF #AF3D56 #8FAF3D #3DAF96
split-complementary
#5D3DAF #AF963D #56AF3D
monochromatic
#2D1D54 #452D82 #5D3DAF #7E61C8 #A38FD8

Accessibility & contrast

On white

7.63
#5D3DAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#5D3DAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D3DAF
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D3DAF#FFFFFF#000000##FFFFFF
##5D3DAF1.007.632.757.63
#FFFFFF7.631.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B3
Deuteranopia (green-blind)
#0051AD
Tritanopia (blue-blind)
#445870
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5d3daf;
/* rgb */ color: rgb(93, 61, 175);
/* oklch */ color: oklch(46.2% 0.172 291.0);
Tailwind
colors: {
  custom: {
    50: '#9274c8',
    500: '#5d3daf',
    950: '#000000',
  },
}
SCSS
$custom: #5d3daf;
$custom-light: #9274c8;
$custom-dark: #000000;
JSON
{
  "hex": "#5d3daf",
  "rgb": {
    "r": 93,
    "g": 61,
    "b": 175
  },
  "hsl": {
    "h": 256.842,
    "s": 48.305,
    "l": 46.275
  },
  "oklch": {
    "l": 0.46196,
    "c": 0.17228,
    "h": 291
  },
  "luminance": 0.0876
}

Semantic roles & 50–950 ramp

primary
#5D3DAF
secondary
#B1C385
accent
#D850B2
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5D3DAF

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

Preview Lab → · Contrast checker → · Palette generator →

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