#5D41DB#5D41DB

#5D41DB is a mid, highly saturated violet. Relative luminance 0.112; OKLCH L 50.5% C 0.221 H 283.5°. Best body text is #FFFFFF at 6.47:1 contrast (WCAG AA passes).

Color values

HEX#5D41DB
RGBrgb(93, 65, 219)
HSLhsl(251, 68%, 56%)
HSVhsv(251, 70%, 86%)
CMYKcmyk(57.5%, 70.3%, 0%, 14.1%)
CIE-LABlab(39.95, 52.14, -74.62)
CIE-LCHlch(39.95, 91.03, 304.94°)
OKLaboklab(50.5% 0.0514 -0.2149)
OKLCHoklch(50.5% 0.221 283.5)
XYZxyz(19.1867, 11.2210, 68.1589)
Luminance0.1122 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D41DB #BFDB41
analogous
#4172DB #5D41DB #AA41DB
triadic
#5D41DB #DB5D41 #41DB5D
tetradic
#5D41DB #DB4172 #BFDB41 #41DBAA
square
#5D41DB #DB4172 #BFDB41 #41DBAA
split-complementary
#5D41DB #DBAA41 #72DB41
monochromatic
#2E1A88 #3F23BB #5D41DB #8974E5 #B5A8EE

Accessibility & contrast

On white

6.47
#5D41DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#5D41DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D41DB
6.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D41DB#FFFFFF#000000##FFFFFF
##5D41DB1.006.473.246.47
#FFFFFF6.471.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063E0
Deuteranopia (green-blind)
#0059D8
Tritanopia (blue-blind)
#136A8A
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5d41db;
/* rgb */ color: rgb(93, 65, 219);
/* oklch */ color: oklch(50.5% 0.221 283.5);
Tailwind
colors: {
  custom: {
    50: '#9878e7',
    500: '#5d41db',
    950: '#000000',
  },
}
SCSS
$custom: #5d41db;
$custom-light: #9878e7;
$custom-dark: #000000;
JSON
{
  "hex": "#5d41db",
  "rgb": {
    "r": 93,
    "g": 65,
    "b": 219
  },
  "hsl": {
    "h": 250.909,
    "s": 68.142,
    "l": 55.686
  },
  "oklch": {
    "l": 0.50502,
    "c": 0.22095,
    "h": 283.5
  },
  "luminance": 0.11222
}

Semantic roles & 50–950 ramp

primary
#5D41DB
secondary
#D0DC9C
accent
#EB3DCB
background
#FAF7FE
surface
#F3EDFD
border
#CDC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5D41DB

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

Preview Lab → · Contrast checker → · Palette generator →

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