#5D3FBA#5D3FBA

#5D3FBA is a mid, vivid violet. Relative luminance 0.094; OKLCH L 47.4% C 0.183 H 288.6°. Best body text is #FFFFFF at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#5D3FBA
RGBrgb(93, 63, 186)
HSLhsl(255, 49%, 49%)
HSVhsv(255, 66%, 73%)
CMYKcmyk(50%, 66.1%, 0%, 27.1%)
CIE-LABlab(36.79, 43.55, -60.63)
CIE-LCHlch(36.79, 74.65, 305.69°)
OKLaboklab(47.39% 0.0585 -0.1738)
OKLCHoklch(47.39% 0.183 288.6)
XYZxyz(15.1521, 9.4267, 47.4660)
Luminance0.0943 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D3FBA #9CBA3F
analogous
#3F5FBA #5D3FBA #9B3FBA
triadic
#5D3FBA #BA5D3F #3FBA5D
tetradic
#5D3FBA #BA3F5F #9CBA3F #3FBA9B
square
#5D3FBA #BA3F5F #9CBA3F #3FBA9B
split-complementary
#5D3FBA #BA9B3F #5FBA3F
monochromatic
#2F205F #46308C #5D3FBA #826ACC #A897DC

Accessibility & contrast

On white

7.28
#5D3FBA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#5D3FBA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D3FBA
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D3FBA#FFFFFF#000000##FFFFFF
##5D3FBA1.007.282.897.28
#FFFFFF7.281.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059BE
Deuteranopia (green-blind)
#0053B8
Tritanopia (blue-blind)
#3C5D77
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5d3fba;
/* rgb */ color: rgb(93, 63, 186);
/* oklch */ color: oklch(47.4% 0.183 288.6);
Tailwind
colors: {
  custom: {
    50: '#9376d0',
    500: '#5d3fba',
    950: '#000000',
  },
}
SCSS
$custom: #5d3fba;
$custom-light: #9376d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5d3fba",
  "rgb": {
    "r": 93,
    "g": 63,
    "b": 186
  },
  "hsl": {
    "h": 254.634,
    "s": 49.398,
    "l": 48.824
  },
  "oklch": {
    "l": 0.47387,
    "c": 0.18339,
    "h": 288.6
  },
  "luminance": 0.09427
}

Semantic roles & 50–950 ramp

primary
#5D3FBA
secondary
#B9C88D
accent
#D94FB7
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #5D3FBA

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

Preview Lab → · Contrast checker → · Palette generator →

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