#5D40D1#5D40D1

#5D40D1 is a mid, highly saturated violet. Relative luminance 0.106; OKLCH L 49.5% C 0.210 H 284.9°. Best body text is #FFFFFF at 6.73:1 contrast (WCAG AA passes).

Color values

HEX#5D40D1
RGBrgb(93, 64, 209)
HSLhsl(252, 61%, 54%)
HSVhsv(252, 69%, 82%)
CMYKcmyk(55.5%, 69.4%, 0%, 18%)
CIE-LABlab(38.89, 49.74, -70.60)
CIE-LCHlch(38.89, 86.37, 305.17°)
OKLaboklab(49.48% 0.054 -0.2031)
OKLCHoklch(49.48% 0.21 284.9)
XYZxyz(17.8527, 10.5964, 61.4138)
Luminance0.1060 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D40D1 #B4D140
analogous
#406BD1 #5D40D1 #A540D1
triadic
#5D40D1 #D15D40 #40D15D
tetradic
#5D40D1 #D1406B #B4D140 #40D1A5
square
#5D40D1 #D1406B #B4D140 #40D1A5
split-complementary
#5D40D1 #D1A540 #6BD140
monochromatic
#301D79 #4329AB #5D40D1 #8771DD #B1A3E9

Accessibility & contrast

On white

6.73
#5D40D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#5D40D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D40D1
6.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D40D1#FFFFFF#000000##FFFFFF
##5D40D11.006.733.126.73
#FFFFFF6.731.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D5
Deuteranopia (green-blind)
#0057CE
Tritanopia (blue-blind)
#266684
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5d40d1;
/* rgb */ color: rgb(93, 64, 209);
/* oklch */ color: oklch(49.5% 0.210 284.9);
Tailwind
colors: {
  custom: {
    50: '#9677e0',
    500: '#5d40d1',
    950: '#000000',
  },
}
SCSS
$custom: #5d40d1;
$custom-light: #9677e0;
$custom-dark: #000000;
JSON
{
  "hex": "#5d40d1",
  "rgb": {
    "r": 93,
    "g": 64,
    "b": 209
  },
  "hsl": {
    "h": 252,
    "s": 61.181,
    "l": 53.529
  },
  "oklch": {
    "l": 0.49482,
    "c": 0.21018,
    "h": 284.9
  },
  "luminance": 0.10597
}

Semantic roles & 50–950 ramp

primary
#5D40D1
secondary
#C9D597
accent
#E444C4
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0915
muted
#7E7B83

Preview Lab

Preview with #5D40D1

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

Preview Lab → · Contrast checker → · Palette generator →

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