#5C42C8#5C42C8

#5C42C8 is a mid, vivid violet. Relative luminance 0.103; OKLCH L 48.9% C 0.197 H 285.4°. Best body text is #FFFFFF at 6.84:1 contrast (WCAG AA passes).

Color values

HEX#5C42C8
RGBrgb(92, 66, 200)
HSLhsl(252, 55%, 52%)
HSVhsv(252, 67%, 78%)
CMYKcmyk(54%, 67%, 0%, 21.6%)
CIE-LABlab(38.45, 45.83, -66.12)
CIE-LCHlch(38.45, 80.45, 304.73°)
OKLaboklab(48.91% 0.0524 -0.19)
OKLCHoklch(48.91% 0.197 285.4)
XYZxyz(16.7840, 10.3409, 55.7440)
Luminance0.1034 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C42C8 #AEC842
analogous
#426BC8 #5C42C8 #9F42C8
triadic
#5C42C8 #C85C42 #42C85C
tetradic
#5C42C8 #C8426B #AEC842 #42C89F
square
#5C42C8 #C8426B #AEC842 #42C89F
split-complementary
#5C42C8 #C89F42 #6BC842
monochromatic
#30206F #442E9F #5C42C8 #8571D6 #AEA1E4

Accessibility & contrast

On white

6.84
#5C42C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#5C42C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5C42C8
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C42C8#FFFFFF#000000##FFFFFF
##5C42C81.006.843.076.84
#FFFFFF6.841.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ECC
Deuteranopia (green-blind)
#0056C5
Tritanopia (blue-blind)
#2E647F
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5c42c8;
/* rgb */ color: rgb(92, 66, 200);
/* oklch */ color: oklch(48.9% 0.197 285.4);
Tailwind
colors: {
  custom: {
    50: '#9478da',
    500: '#5c42c8',
    950: '#000000',
  },
}
SCSS
$custom: #5c42c8;
$custom-light: #9478da;
$custom-dark: #000000;
JSON
{
  "hex": "#5c42c8",
  "rgb": {
    "r": 92,
    "g": 66,
    "b": 200
  },
  "hsl": {
    "h": 251.642,
    "s": 54.918,
    "l": 52.157
  },
  "oklch": {
    "l": 0.48908,
    "c": 0.19708,
    "h": 285.4
  },
  "luminance": 0.10342
}

Semantic roles & 50–950 ramp

primary
#5C42C8
secondary
#C5D096
accent
#DE4AC1
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5C42C8

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

Preview Lab → · Contrast checker → · Palette generator →

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