#5D41B7#5D41B7

#5D41B7 is a mid, vivid violet. Relative luminance 0.095; OKLCH L 47.4% C 0.177 H 288.7°. Best body text is #FFFFFF at 7.23:1 contrast (WCAG AA passes).

Color values

HEX#5D41B7
RGBrgb(93, 65, 183)
HSLhsl(254, 48%, 49%)
HSVhsv(254, 64%, 72%)
CMYKcmyk(49.2%, 64.5%, 0%, 28.2%)
CIE-LABlab(36.98, 41.54, -58.56)
CIE-LCHlch(36.98, 71.80, 305.35°)
OKLaboklab(47.45% 0.0568 -0.1677)
OKLCHoklch(47.45% 0.177 288.7)
XYZxyz(14.9493, 9.5260, 45.8416)
Luminance0.0953 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D41B7 #9BB741
analogous
#4160B7 #5D41B7 #9841B7
triadic
#5D41B7 #B75D41 #41B75D
tetradic
#5D41B7 #B74160 #9BB741 #41B798
square
#5D41B7 #B74160 #9BB741 #41B798
split-complementary
#5D41B7 #B79841 #60B741
monochromatic
#2F215D #46318A #5D41B7 #816BCA #A898DA

Accessibility & contrast

On white

7.23
#5D41B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#5D41B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D41B7
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D41B7#FFFFFF#000000##FFFFFF
##5D41B71.007.232.917.23
#FFFFFF7.231.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ABB
Deuteranopia (green-blind)
#0054B5
Tritanopia (blue-blind)
#3E5D76
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5d41b7;
/* rgb */ color: rgb(93, 65, 183);
/* oklch */ color: oklch(47.4% 0.177 288.7);
Tailwind
colors: {
  custom: {
    50: '#9277cd',
    500: '#5d41b7',
    950: '#000000',
  },
}
SCSS
$custom: #5d41b7;
$custom-light: #9277cd;
$custom-dark: #000000;
JSON
{
  "hex": "#5d41b7",
  "rgb": {
    "r": 93,
    "g": 65,
    "b": 183
  },
  "hsl": {
    "h": 254.237,
    "s": 47.581,
    "l": 48.627
  },
  "oklch": {
    "l": 0.47447,
    "c": 0.17709,
    "h": 288.7
  },
  "luminance": 0.09527
}

Semantic roles & 50–950 ramp

primary
#5D41B7
secondary
#B9C68E
accent
#D751B7
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0914
muted
#7E7B82

Preview Lab

Preview with #5D41B7

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

Preview Lab → · Contrast checker → · Palette generator →

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