#5D41DC#5D41DC

#5D41DC is a mid, highly saturated violet. Relative luminance 0.113; OKLCH L 50.6% C 0.222 H 283.3°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#5D41DC
RGBrgb(93, 65, 220)
HSLhsl(251, 69%, 56%)
HSVhsv(251, 70%, 86%)
CMYKcmyk(57.7%, 70.5%, 0%, 13.7%)
CIE-LABlab(40.04, 52.44, -75.05)
CIE-LCHlch(40.04, 91.55, 304.94°)
OKLaboklab(50.59% 0.0512 -0.2161)
OKLCHoklch(50.59% 0.222 283.3)
XYZxyz(19.3188, 11.2738, 68.8543)
Luminance0.1128 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D41DC #C0DC41
analogous
#4172DC #5D41DC #AB41DC
triadic
#5D41DC #DC5D41 #41DC5D
tetradic
#5D41DC #DC4172 #C0DC41 #41DCAB
square
#5D41DC #DC4172 #C0DC41 #41DCAB
split-complementary
#5D41DC #DCAB41 #72DC41
monochromatic
#2E1989 #3F23BD #5D41DC #8975E6 #B5A8EF

Accessibility & contrast

On white

6.45
#5D41DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#5D41DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D41DC
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D41DC#FFFFFF#000000##FFFFFF
##5D41DC1.006.453.266.45
#FFFFFF6.451.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063E1
Deuteranopia (green-blind)
#0059D9
Tritanopia (blue-blind)
#116B8A
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5d41dc;
/* rgb */ color: rgb(93, 65, 220);
/* oklch */ color: oklch(50.6% 0.222 283.3);
Tailwind
colors: {
  custom: {
    50: '#9878e8',
    500: '#5d41dc',
    950: '#000000',
  },
}
SCSS
$custom: #5d41dc;
$custom-light: #9878e8;
$custom-dark: #000000;
JSON
{
  "hex": "#5d41dc",
  "rgb": {
    "r": 93,
    "g": 65,
    "b": 220
  },
  "hsl": {
    "h": 250.839,
    "s": 68.889,
    "l": 55.882
  },
  "oklch": {
    "l": 0.50591,
    "c": 0.22214,
    "h": 283.3
  },
  "luminance": 0.11275
}

Semantic roles & 50–950 ramp

primary
#5D41DC
secondary
#D1DD9C
accent
#EC3CCC
background
#FAF7FE
surface
#F3EDFD
border
#CDC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5D41DC

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

Preview Lab → · Contrast checker → · Palette generator →

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