#5D42CE#5D42CE

#5D42CE is a mid, highly saturated violet. Relative luminance 0.107; OKLCH L 49.5% C 0.204 H 285.0°. Best body text is #FFFFFF at 6.70:1 contrast (WCAG AA passes).

Color values

HEX#5D42CE
RGBrgb(93, 66, 206)
HSLhsl(252, 59%, 53%)
HSVhsv(252, 68%, 81%)
CMYKcmyk(54.9%, 68%, 0%, 19.2%)
CIE-LABlab(39.03, 47.77, -68.64)
CIE-LCHlch(39.03, 83.63, 304.84°)
OKLaboklab(49.51% 0.0528 -0.1974)
OKLCHoklch(49.51% 0.204 285)
XYZxyz(17.5996, 10.6788, 59.5144)
Luminance0.1068 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D42CE #B3CE42
analogous
#426DCE #5D42CE #A342CE
triadic
#5D42CE #CE5D42 #42CE5D
tetradic
#5D42CE #CE426D #B3CE42 #42CEA3
square
#5D42CE #CE426D #B3CE42 #42CEA3
split-complementary
#5D42CE #CEA342 #6DCE42
monochromatic
#301F77 #432BA7 #5D42CE #8773DB #B0A3E7

Accessibility & contrast

On white

6.70
#5D42CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#5D42CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D42CE
6.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D42CE#FFFFFF#000000##FFFFFF
##5D42CE1.006.703.146.70
#FFFFFF6.701.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D2
Deuteranopia (green-blind)
#0058CB
Tritanopia (blue-blind)
#2A6683
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5d42ce;
/* rgb */ color: rgb(93, 66, 206);
/* oklch */ color: oklch(49.5% 0.204 285.0);
Tailwind
colors: {
  custom: {
    50: '#9678de',
    500: '#5d42ce',
    950: '#000000',
  },
}
SCSS
$custom: #5d42ce;
$custom-light: #9678de;
$custom-dark: #000000;
JSON
{
  "hex": "#5d42ce",
  "rgb": {
    "r": 93,
    "g": 66,
    "b": 206
  },
  "hsl": {
    "h": 251.571,
    "s": 58.824,
    "l": 53.333
  },
  "oklch": {
    "l": 0.49505,
    "c": 0.20431,
    "h": 285
  },
  "luminance": 0.1068
}

Semantic roles & 50–950 ramp

primary
#5D42CE
secondary
#C8D498
accent
#E246C4
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5D42CE

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

Preview Lab → · Contrast checker → · Palette generator →

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