#5D42CC#5D42CC

#5D42CC is a mid, highly saturated violet. Relative luminance 0.106; OKLCH L 49.3% C 0.202 H 285.3°. Best body text is #FFFFFF at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#5D42CC
RGBrgb(93, 66, 204)
HSLhsl(252, 58%, 53%)
HSVhsv(252, 68%, 80%)
CMYKcmyk(54.4%, 67.6%, 0%, 20%)
CIE-LABlab(38.87, 47.18, -67.75)
CIE-LCHlch(38.87, 82.56, 304.85°)
OKLaboklab(49.34% 0.0531 -0.1948)
OKLCHoklch(49.34% 0.202 285.3)
XYZxyz(17.3582, 10.5822, 58.2430)
Luminance0.1058 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D42CC #B1CC42
analogous
#426CCC #5D42CC #A242CC
triadic
#5D42CC #CC5D42 #42CC5D
tetradic
#5D42CC #CC426C #B1CC42 #42CCA2
square
#5D42CC #CC426C #B1CC42 #42CCA2
split-complementary
#5D42CC #CCA242 #6CCC42
monochromatic
#301F74 #442CA4 #5D42CC #8672D9 #B0A2E6

Accessibility & contrast

On white

6.74
#5D42CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #5D42CC
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D42CC#FFFFFF#000000##FFFFFF
##5D42CC1.006.743.126.74
#FFFFFF6.741.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD0
Deuteranopia (green-blind)
#0057C9
Tritanopia (blue-blind)
#2C6582
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5d42cc;
/* rgb */ color: rgb(93, 66, 204);
/* oklch */ color: oklch(49.3% 0.202 285.3);
Tailwind
colors: {
  custom: {
    50: '#9578dd',
    500: '#5d42cc',
    950: '#000000',
  },
}
SCSS
$custom: #5d42cc;
$custom-light: #9578dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5d42cc",
  "rgb": {
    "r": 93,
    "g": 66,
    "b": 204
  },
  "hsl": {
    "h": 251.739,
    "s": 57.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.49335,
    "c": 0.20188,
    "h": 285.3
  },
  "luminance": 0.10583
}

Semantic roles & 50–950 ramp

primary
#5D42CC
secondary
#C7D397
accent
#E147C3
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5D42CC

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

Preview Lab → · Contrast checker → · Palette generator →

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