#5D41B4#5D41B4

#5D41B4 is a mid, vivid violet. Relative luminance 0.094; OKLCH L 47.2% C 0.173 H 289.2°. Best body text is #FFFFFF at 7.29:1 contrast (WCAG AA passes).

Color values

HEX#5D41B4
RGBrgb(93, 65, 180)
HSLhsl(255, 47%, 48%)
HSVhsv(255, 64%, 71%)
CMYKcmyk(48.3%, 63.9%, 0%, 29.4%)
CIE-LABlab(36.75, 40.66, -57.16)
CIE-LCHlch(36.75, 70.15, 305.43°)
OKLaboklab(47.21% 0.0571 -0.1636)
OKLCHoklch(47.21% 0.173 289.2)
XYZxyz(14.6404, 9.4024, 44.2146)
Luminance0.0940 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D41B4 #98B441
analogous
#415EB4 #5D41B4 #9741B4
triadic
#5D41B4 #B45D41 #41B45D
tetradic
#5D41B4 #B4415E #98B441 #41B497
square
#5D41B4 #B4415E #98B441 #41B497
split-complementary
#5D41B4 #B49741 #5EB441
monochromatic
#2F215A #463187 #5D41B4 #8169C9 #A796D9

Accessibility & contrast

On white

7.29
#5D41B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#5D41B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D41B4
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D41B4#FFFFFF#000000##FFFFFF
##5D41B41.007.292.887.29
#FFFFFF7.291.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B8
Deuteranopia (green-blind)
#0054B2
Tritanopia (blue-blind)
#405C74
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5d41b4;
/* rgb */ color: rgb(93, 65, 180);
/* oklch */ color: oklch(47.2% 0.173 289.2);
Tailwind
colors: {
  custom: {
    50: '#9277cb',
    500: '#5d41b4',
    950: '#000000',
  },
}
SCSS
$custom: #5d41b4;
$custom-light: #9277cb;
$custom-dark: #000000;
JSON
{
  "hex": "#5d41b4",
  "rgb": {
    "r": 93,
    "g": 65,
    "b": 180
  },
  "hsl": {
    "h": 254.609,
    "s": 46.939,
    "l": 48.039
  },
  "oklch": {
    "l": 0.47208,
    "c": 0.1733,
    "h": 289.2
  },
  "luminance": 0.09403
}

Semantic roles & 50–950 ramp

primary
#5D41B4
secondary
#B7C58C
accent
#D751B6
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0913
muted
#7E7B82

Preview Lab

Preview with #5D41B4

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

Preview Lab → · Contrast checker → · Palette generator →

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