#5C42DC#5C42DC

#5C42DC is a mid, highly saturated violet. Relative luminance 0.113; OKLCH L 50.6% C 0.221 H 282.8°. Best body text is #FFFFFF at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#5C42DC
RGBrgb(92, 66, 220)
HSLhsl(250, 69%, 56%)
HSVhsv(250, 70%, 86%)
CMYKcmyk(58.2%, 70%, 0%, 13.7%)
CIE-LABlab(40.14, 51.76, -74.88)
CIE-LCHlch(40.14, 91.03, 304.66°)
OKLaboklab(50.65% 0.0491 -0.2157)
OKLCHoklch(50.65% 0.221 282.8)
XYZxyz(19.2761, 11.3378, 68.8689)
Luminance0.1134 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C42DC #C2DC42
analogous
#4275DC #5C42DC #A942DC
triadic
#5C42DC #DC5C42 #42DC5C
tetradic
#5C42DC #DC4275 #C2DC42 #42DCA9
square
#5C42DC #DC4275 #C2DC42 #42DCA9
split-complementary
#5C42DC #DCA942 #75DC42
monochromatic
#2D1A8A #3D23BE #5C42DC #8976E6 #B5A9EF

Accessibility & contrast

On white

6.43
#5C42DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#5C42DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5C42DC
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C42DC#FFFFFF#000000##FFFFFF
##5C42DC1.006.433.276.43
#FFFFFF6.431.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063E1
Deuteranopia (green-blind)
#0059D9
Tritanopia (blue-blind)
#076B8A
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5c42dc;
/* rgb */ color: rgb(92, 66, 220);
/* oklch */ color: oklch(50.6% 0.221 282.8);
Tailwind
colors: {
  custom: {
    50: '#9779e8',
    500: '#5c42dc',
    950: '#000000',
  },
}
SCSS
$custom: #5c42dc;
$custom-light: #9779e8;
$custom-dark: #000000;
JSON
{
  "hex": "#5c42dc",
  "rgb": {
    "r": 92,
    "g": 66,
    "b": 220
  },
  "hsl": {
    "h": 250.13,
    "s": 68.75,
    "l": 56.078
  },
  "oklch": {
    "l": 0.50646,
    "c": 0.2212,
    "h": 282.8
  },
  "luminance": 0.11339
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5C42DC

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

Preview Lab → · Contrast checker → · Palette generator →

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