#5D41BB#5D41BB

#5D41BB is a mid, vivid violet. Relative luminance 0.097; OKLCH L 47.8% C 0.182 H 288.0°. Best body text is #FFFFFF at 7.14:1 contrast (WCAG AA passes).

Color values

HEX#5D41BB
RGBrgb(93, 65, 187)
HSLhsl(254, 48%, 49%)
HSVhsv(254, 65%, 73%)
CMYKcmyk(50.3%, 65.2%, 0%, 26.7%)
CIE-LABlab(37.29, 42.72, -60.41)
CIE-LCHlch(37.29, 73.99, 305.27°)
OKLaboklab(47.77% 0.0564 -0.1732)
OKLCHoklch(47.77% 0.182 288)
XYZxyz(15.3715, 9.6949, 48.0654)
Luminance0.0970 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D41BB #9FBB41
analogous
#4162BB #5D41BB #9A41BB
triadic
#5D41BB #BB5D41 #41BB5D
tetradic
#5D41BB #BB4162 #9FBB41 #41BB9A
square
#5D41BB #BB4162 #9FBB41 #41BB9A
split-complementary
#5D41BB #BB9A41 #62BB41
monochromatic
#302160 #46318E #5D41BB #836DCC #A99ADC

Accessibility & contrast

On white

7.14
#5D41BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#5D41BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D41BB
7.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D41BB#FFFFFF#000000##FFFFFF
##5D41BB1.007.142.947.14
#FFFFFF7.141.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ABF
Deuteranopia (green-blind)
#0055B9
Tritanopia (blue-blind)
#3C5F78
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5d41bb;
/* rgb */ color: rgb(93, 65, 187);
/* oklch */ color: oklch(47.8% 0.182 288.0);
Tailwind
colors: {
  custom: {
    50: '#9377d0',
    500: '#5d41bb',
    950: '#000000',
  },
}
SCSS
$custom: #5d41bb;
$custom-light: #9377d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5d41bb",
  "rgb": {
    "r": 93,
    "g": 65,
    "b": 187
  },
  "hsl": {
    "h": 253.77,
    "s": 48.413,
    "l": 49.412
  },
  "oklch": {
    "l": 0.4777,
    "c": 0.18212,
    "h": 288
  },
  "luminance": 0.09696
}

Semantic roles & 50–950 ramp

primary
#5D41BB
secondary
#BBC890
accent
#D850B9
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0914
muted
#7E7B82

Preview Lab

Preview with #5D41BB

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

Preview Lab → · Contrast checker → · Palette generator →

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