#5D42C8#5D42C8

#5D42C8 is a mid, vivid violet. Relative luminance 0.104; OKLCH L 49.0% C 0.197 H 285.8°. Best body text is #FFFFFF at 6.82:1 contrast (WCAG AA passes).

Color values

HEX#5D42C8
RGBrgb(93, 66, 200)
HSLhsl(252, 55%, 52%)
HSVhsv(252, 67%, 78%)
CMYKcmyk(53.5%, 67%, 0%, 21.6%)
CIE-LABlab(38.54, 45.99, -65.97)
CIE-LCHlch(38.54, 80.42, 304.88°)
OKLaboklab(49% 0.0537 -0.1895)
OKLCHoklch(49% 0.197 285.8)
XYZxyz(16.8846, 10.3928, 55.7487)
Luminance0.1039 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D42C8 #ADC842
analogous
#426AC8 #5D42C8 #A042C8
triadic
#5D42C8 #C85D42 #42C85D
tetradic
#5D42C8 #C8426A #ADC842 #42C8A0
square
#5D42C8 #C8426A #ADC842 #42C8A0
split-complementary
#5D42C8 #C8A042 #6AC842
monochromatic
#30206F #452E9F #5D42C8 #8671D6 #AEA1E4

Accessibility & contrast

On white

6.82
#5D42C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#5D42C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D42C8
6.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D42C8#FFFFFF#000000##FFFFFF
##5D42C81.006.823.086.82
#FFFFFF6.821.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ECC
Deuteranopia (green-blind)
#0057C5
Tritanopia (blue-blind)
#30647F
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5d42c8;
/* rgb */ color: rgb(93, 66, 200);
/* oklch */ color: oklch(49.0% 0.197 285.8);
Tailwind
colors: {
  custom: {
    50: '#9578da',
    500: '#5d42c8',
    950: '#000000',
  },
}
SCSS
$custom: #5d42c8;
$custom-light: #9578da;
$custom-dark: #000000;
JSON
{
  "hex": "#5d42c8",
  "rgb": {
    "r": 93,
    "g": 66,
    "b": 200
  },
  "hsl": {
    "h": 252.09,
    "s": 54.918,
    "l": 52.157
  },
  "oklch": {
    "l": 0.48996,
    "c": 0.19699,
    "h": 285.8
  },
  "luminance": 0.10394
}

Semantic roles & 50–950 ramp

primary
#5D42C8
secondary
#C4D096
accent
#DE4AC0
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5D42C8

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

Preview Lab → · Contrast checker → · Palette generator →

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