#5D3DBA#5D3DBA

#5D3DBA is a mid, vivid violet. Relative luminance 0.092; OKLCH L 47.1% C 0.186 H 289.0°. Best body text is #FFFFFF at 7.39:1 contrast (WCAG AA passes).

Color values

HEX#5D3DBA
RGBrgb(93, 61, 186)
HSLhsl(255, 51%, 48%)
HSVhsv(255, 67%, 73%)
CMYKcmyk(50%, 67.2%, 0%, 27.1%)
CIE-LABlab(36.38, 44.67, -61.29)
CIE-LCHlch(36.38, 75.84, 306.08°)
OKLaboklab(47.09% 0.0604 -0.1758)
OKLCHoklch(47.09% 0.186 289)
XYZxyz(15.0433, 9.2092, 47.4298)
Luminance0.0921 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D3DBA #9ABA3D
analogous
#3D5BBA #5D3DBA #9B3DBA
triadic
#5D3DBA #BA5D3D #3DBA5D
tetradic
#5D3DBA #BA3D5B #9ABA3D #3DBA9B
square
#5D3DBA #BA3D5B #9ABA3D #3DBA9B
split-complementary
#5D3DBA #BA9B3D #5BBA3D
monochromatic
#2F1F5E #462E8C #5D3DBA #8167CD #A795DC

Accessibility & contrast

On white

7.39
#5D3DBA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#5D3DBA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D3DBA
7.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D3DBA#FFFFFF#000000##FFFFFF
##5D3DBA1.007.392.847.39
#FFFFFF7.391.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058BE
Deuteranopia (green-blind)
#0052B8
Tritanopia (blue-blind)
#3D5C76
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5d3dba;
/* rgb */ color: rgb(93, 61, 186);
/* oklch */ color: oklch(47.1% 0.186 289.0);
Tailwind
colors: {
  custom: {
    50: '#9375d0',
    500: '#5d3dba',
    950: '#000000',
  },
}
SCSS
$custom: #5d3dba;
$custom-light: #9375d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5d3dba",
  "rgb": {
    "r": 93,
    "g": 61,
    "b": 186
  },
  "hsl": {
    "h": 255.36,
    "s": 50.607,
    "l": 48.431
  },
  "oklch": {
    "l": 0.47093,
    "c": 0.18588,
    "h": 289
  },
  "luminance": 0.0921
}

Semantic roles & 50–950 ramp

primary
#5D3DBA
secondary
#B8C88B
accent
#DA4EB6
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #5D3DBA

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

Preview Lab → · Contrast checker → · Palette generator →

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