#5D42DD#5D42DD

#5D42DD is a mid, highly saturated violet. Relative luminance 0.114; OKLCH L 50.8% C 0.222 H 283.1°. Best body text is #FFFFFF at 6.39:1 contrast (WCAG AA passes).

Color values

HEX#5D42DD
RGBrgb(93, 66, 221)
HSLhsl(250, 70%, 56%)
HSVhsv(250, 70%, 87%)
CMYKcmyk(57.9%, 70.1%, 0%, 13.3%)
CIE-LABlab(40.32, 52.20, -75.17)
CIE-LCHlch(40.32, 91.51, 304.78°)
OKLaboklab(50.82% 0.0503 -0.2165)
OKLCHoklch(50.82% 0.222 283.1)
XYZxyz(19.5095, 11.4428, 69.5732)
Luminance0.1144 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D42DD #C2DD42
analogous
#4275DD #5D42DD #AB42DD
triadic
#5D42DD #DD5D42 #42DD5D
tetradic
#5D42DD #DD4275 #C2DD42 #42DDAB
square
#5D42DD #DD4275 #C2DD42 #42DDAB
split-complementary
#5D42DD #DDAB42 #75DD42
monochromatic
#2D198C #3E22BF #5D42DD #8976E6 #B6AAF0

Accessibility & contrast

On white

6.39
#5D42DD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#5D42DD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D42DD
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D42DD#FFFFFF#000000##FFFFFF
##5D42DD1.006.393.296.39
#FFFFFF6.391.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064E2
Deuteranopia (green-blind)
#005ADA
Tritanopia (blue-blind)
#0D6C8B
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5d42dd;
/* rgb */ color: rgb(93, 66, 221);
/* oklch */ color: oklch(50.8% 0.222 283.1);
Tailwind
colors: {
  custom: {
    50: '#9879e9',
    500: '#5d42dd',
    950: '#000000',
  },
}
SCSS
$custom: #5d42dd;
$custom-light: #9879e9;
$custom-dark: #000000;
JSON
{
  "hex": "#5d42dd",
  "rgb": {
    "r": 93,
    "g": 66,
    "b": 221
  },
  "hsl": {
    "h": 250.452,
    "s": 69.507,
    "l": 56.275
  },
  "oklch": {
    "l": 0.50816,
    "c": 0.22225,
    "h": 283.1
  },
  "luminance": 0.11444
}

Semantic roles & 50–950 ramp

primary
#5D42DD
secondary
#D2DD9D
accent
#EC3BCE
background
#FAF7FE
surface
#F3EDFD
border
#CDC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5D42DD

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

Preview Lab → · Contrast checker → · Palette generator →

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