#5D41BA#5D41BA

#5D41BA is a mid, vivid violet. Relative luminance 0.097; OKLCH L 47.7% C 0.181 H 288.2°. Best body text is #FFFFFF at 7.17:1 contrast (WCAG AA passes).

Color values

HEX#5D41BA
RGBrgb(93, 65, 186)
HSLhsl(254, 48%, 49%)
HSVhsv(254, 65%, 73%)
CMYKcmyk(50%, 65.1%, 0%, 27.1%)
CIE-LABlab(37.21, 42.43, -59.95)
CIE-LCHlch(37.21, 73.44, 305.29°)
OKLaboklab(47.69% 0.0565 -0.1718)
OKLCHoklch(47.69% 0.181 288.2)
XYZxyz(15.2648, 9.6522, 47.5036)
Luminance0.0965 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D41BA #9EBA41
analogous
#4162BA #5D41BA #9A41BA
triadic
#5D41BA #BA5D41 #41BA5D
tetradic
#5D41BA #BA4162 #9EBA41 #41BA9A
square
#5D41BA #BA4162 #9EBA41 #41BA9A
split-complementary
#5D41BA #BA9A41 #62BA41
monochromatic
#30215F #46318D #5D41BA #826CCC #A99ADC

Accessibility & contrast

On white

7.17
#5D41BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#5D41BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D41BA
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D41BA#FFFFFF#000000##FFFFFF
##5D41BA1.007.172.937.17
#FFFFFF7.171.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ABE
Deuteranopia (green-blind)
#0054B8
Tritanopia (blue-blind)
#3C5E78
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5d41ba;
/* rgb */ color: rgb(93, 65, 186);
/* oklch */ color: oklch(47.7% 0.181 288.2);
Tailwind
colors: {
  custom: {
    50: '#9377d0',
    500: '#5d41ba',
    950: '#000000',
  },
}
SCSS
$custom: #5d41ba;
$custom-light: #9377d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5d41ba",
  "rgb": {
    "r": 93,
    "g": 65,
    "b": 186
  },
  "hsl": {
    "h": 253.884,
    "s": 48.207,
    "l": 49.216
  },
  "oklch": {
    "l": 0.47689,
    "c": 0.18086,
    "h": 288.2
  },
  "luminance": 0.09653
}

Semantic roles & 50–950 ramp

primary
#5D41BA
secondary
#BBC88F
accent
#D850B8
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0914
muted
#7E7B82

Preview Lab

Preview with #5D41BA

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

Preview Lab → · Contrast checker → · Palette generator →

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