#5D41D7#5D41D7

#5D41D7 is a mid, highly saturated violet. Relative luminance 0.110; OKLCH L 50.1% C 0.216 H 284.0°. Best body text is #FFFFFF at 6.56:1 contrast (WCAG AA passes).

Color values

HEX#5D41D7
RGBrgb(93, 65, 215)
HSLhsl(251, 65%, 55%)
HSVhsv(251, 70%, 84%)
CMYKcmyk(56.7%, 69.8%, 0%, 15.7%)
CIE-LABlab(39.60, 50.97, -72.90)
CIE-LCHlch(39.60, 88.95, 304.96°)
OKLaboklab(50.15% 0.0522 -0.2098)
OKLCHoklch(50.15% 0.216 284)
XYZxyz(18.6665, 11.0129, 65.4189)
Luminance0.1101 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D41D7 #BBD741
analogous
#4170D7 #5D41D7 #A841D7
triadic
#5D41D7 #D75D41 #41D75D
tetradic
#5D41D7 #D74170 #BBD741 #41D7A8
square
#5D41D7 #D74170 #BBD741 #41D7A8
split-complementary
#5D41D7 #D7A841 #70D741
monochromatic
#2F1B82 #4126B5 #5D41D7 #8874E2 #B3A6EC

Accessibility & contrast

On white

6.56
#5D41D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#5D41D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D41D7
6.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D41D7#FFFFFF#000000##FFFFFF
##5D41D71.006.563.206.56
#FFFFFF6.561.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062DB
Deuteranopia (green-blind)
#0058D4
Tritanopia (blue-blind)
#1C6987
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5d41d7;
/* rgb */ color: rgb(93, 65, 215);
/* oklch */ color: oklch(50.1% 0.216 284.0);
Tailwind
colors: {
  custom: {
    50: '#9778e4',
    500: '#5d41d7',
    950: '#000000',
  },
}
SCSS
$custom: #5d41d7;
$custom-light: #9778e4;
$custom-dark: #000000;
JSON
{
  "hex": "#5d41d7",
  "rgb": {
    "r": 93,
    "g": 65,
    "b": 215
  },
  "hsl": {
    "h": 251.2,
    "s": 65.217,
    "l": 54.902
  },
  "oklch": {
    "l": 0.50147,
    "c": 0.21622,
    "h": 284
  },
  "luminance": 0.11014
}

Semantic roles & 50–950 ramp

primary
#5D41D7
secondary
#CED99A
accent
#E840C9
background
#FAF7FE
surface
#F3EDFC
border
#CDC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5D41D7

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

Preview Lab → · Contrast checker → · Palette generator →

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