#5D40DD#5D40DD

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

Color values

HEX#5D40DD
RGBrgb(93, 64, 221)
HSLhsl(251, 70%, 56%)
HSVhsv(251, 71%, 87%)
CMYKcmyk(57.9%, 71%, 0%, 13.3%)
CIE-LABlab(39.94, 53.26, -75.79)
CIE-LCHlch(39.94, 92.63, 305.10°)
OKLaboklab(50.55% 0.0518 -0.2183)
OKLCHoklch(50.55% 0.224 283.3)
XYZxyz(19.3947, 11.2132, 69.5349)
Luminance0.1121 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D40DD #C0DD40
analogous
#4071DD #5D40DD #AB40DD
triadic
#5D40DD #DD5D40 #40DD5D
tetradic
#5D40DD #DD4071 #C0DD40 #40DDAB
square
#5D40DD #DD4071 #C0DD40 #40DDAB
split-complementary
#5D40DD #DDAB40 #71DD40
monochromatic
#2E198A #3F22BE #5D40DD #8974E6 #B5A8EF

Accessibility & contrast

On white

6.48
#5D40DD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #5D40DD
6.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D40DD#FFFFFF#000000##FFFFFF
##5D40DD1.006.483.246.48
#FFFFFF6.481.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063E2
Deuteranopia (green-blind)
#0059DA
Tritanopia (blue-blind)
#0E6B8A
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5d40dd;
/* rgb */ color: rgb(93, 64, 221);
/* oklch */ color: oklch(50.5% 0.224 283.3);
Tailwind
colors: {
  custom: {
    50: '#9878e9',
    500: '#5d40dd',
    950: '#000000',
  },
}
SCSS
$custom: #5d40dd;
$custom-light: #9878e9;
$custom-dark: #000000;
JSON
{
  "hex": "#5d40dd",
  "rgb": {
    "r": 93,
    "g": 64,
    "b": 221
  },
  "hsl": {
    "h": 251.083,
    "s": 69.778,
    "l": 55.882
  },
  "oklch": {
    "l": 0.50547,
    "c": 0.22436,
    "h": 283.3
  },
  "luminance": 0.11214
}

Semantic roles & 50–950 ramp

primary
#5D40DD
secondary
#D1DD9C
accent
#ED3BCC
background
#FAF7FE
surface
#F4EDFD
border
#CEC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5D40DD

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

Preview Lab → · Contrast checker → · Palette generator →

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