#5C42CF#5C42CF

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

Color values

HEX#5C42CF
RGBrgb(92, 66, 207)
HSLhsl(251, 59%, 54%)
HSVhsv(251, 68%, 81%)
CMYKcmyk(55.6%, 68.1%, 0%, 18.8%)
CIE-LABlab(39.03, 47.91, -69.23)
CIE-LCHlch(39.03, 84.19, 304.68°)
OKLaboklab(49.51% 0.0513 -0.1991)
OKLCHoklch(49.51% 0.206 284.4)
XYZxyz(17.6209, 10.6757, 60.1515)
Luminance0.1068 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C42CF #B5CF42
analogous
#426ECF #5C42CF #A242CF
triadic
#5C42CF #CF5C42 #42CF5C
tetradic
#5C42CF #CF426E #B5CF42 #42CFA2
square
#5C42CF #CF426E #B5CF42 #42CFA2
split-complementary
#5C42CF #CFA242 #6ECF42
monochromatic
#2F1F78 #422BA9 #5C42CF #8673DB #B0A4E8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5C42CF#FFFFFF#000000##FFFFFF
##5C42CF1.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)
#0060D3
Deuteranopia (green-blind)
#0057CC
Tritanopia (blue-blind)
#256783
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5c42cf;
/* rgb */ color: rgb(92, 66, 207);
/* oklch */ color: oklch(49.5% 0.206 284.4);
Tailwind
colors: {
  custom: {
    50: '#9578df',
    500: '#5c42cf',
    950: '#000000',
  },
}
SCSS
$custom: #5c42cf;
$custom-light: #9578df;
$custom-dark: #000000;
JSON
{
  "hex": "#5c42cf",
  "rgb": {
    "r": 92,
    "g": 66,
    "b": 207
  },
  "hsl": {
    "h": 251.064,
    "s": 59.494,
    "l": 53.529
  },
  "oklch": {
    "l": 0.49506,
    "c": 0.20562,
    "h": 284.4
  },
  "luminance": 0.10677
}

Semantic roles & 50–950 ramp

primary
#5C42CF
secondary
#C9D598
accent
#E345C6
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5C42CF

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

Preview Lab → · Contrast checker → · Palette generator →

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