#5D41B5#5D41B5

#5D41B5 is a mid, vivid violet. Relative luminance 0.094; OKLCH L 47.3% C 0.175 H 289.1°. Best body text is #FFFFFF at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#5D41B5
RGBrgb(93, 65, 181)
HSLhsl(254, 47%, 48%)
HSVhsv(254, 64%, 71%)
CMYKcmyk(48.6%, 64.1%, 0%, 29%)
CIE-LABlab(36.82, 40.96, -57.63)
CIE-LCHlch(36.82, 70.70, 305.40°)
OKLaboklab(47.29% 0.057 -0.165)
OKLCHoklch(47.29% 0.175 289.1)
XYZxyz(14.7426, 9.4433, 44.7531)
Luminance0.0944 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D41B5 #99B541
analogous
#415FB5 #5D41B5 #9741B5
triadic
#5D41B5 #B55D41 #41B55D
tetradic
#5D41B5 #B5415F #99B541 #41B597
square
#5D41B5 #B5415F #99B541 #41B597
split-complementary
#5D41B5 #B59741 #5FB541
monochromatic
#2F215B #463188 #5D41B5 #816AC9 #A797DA

Accessibility & contrast

On white

7.27
#5D41B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D41B5
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D41B5#FFFFFF#000000##FFFFFF
##5D41B51.007.272.897.27
#FFFFFF7.271.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B9
Deuteranopia (green-blind)
#0054B3
Tritanopia (blue-blind)
#405D75
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5d41b5;
/* rgb */ color: rgb(93, 65, 181);
/* oklch */ color: oklch(47.3% 0.175 289.1);
Tailwind
colors: {
  custom: {
    50: '#9277cc',
    500: '#5d41b5',
    950: '#000000',
  },
}
SCSS
$custom: #5d41b5;
$custom-light: #9277cc;
$custom-dark: #000000;
JSON
{
  "hex": "#5d41b5",
  "rgb": {
    "r": 93,
    "g": 65,
    "b": 181
  },
  "hsl": {
    "h": 254.483,
    "s": 47.154,
    "l": 48.235
  },
  "oklch": {
    "l": 0.47288,
    "c": 0.17457,
    "h": 289.1
  },
  "luminance": 0.09444
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5D41B5

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

Preview Lab → · Contrast checker → · Palette generator →

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