#5C42CA#5C42CA

#5C42CA is a mid, vivid violet. Relative luminance 0.104; OKLCH L 49.1% C 0.200 H 285.1°. Best body text is #FFFFFF at 6.80:1 contrast (WCAG AA passes).

Color values

HEX#5C42CA
RGBrgb(92, 66, 202)
HSLhsl(251, 56%, 53%)
HSVhsv(251, 67%, 79%)
CMYKcmyk(54.5%, 67.3%, 0%, 20.8%)
CIE-LABlab(38.61, 46.42, -67.01)
CIE-LCHlch(38.61, 81.52, 304.71°)
OKLaboklab(49.08% 0.0521 -0.1926)
OKLCHoklch(49.08% 0.2 285.1)
XYZxyz(17.0193, 10.4351, 56.9830)
Luminance0.1044 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C42CA #B0CA42
analogous
#426CCA #5C42CA #A042CA
triadic
#5C42CA #CA5C42 #42CA5C
tetradic
#5C42CA #CA426C #B0CA42 #42CAA0
square
#5C42CA #CA426C #B0CA42 #42CAA0
split-complementary
#5C42CA #CAA042 #6CCA42
monochromatic
#302072 #442DA2 #5C42CA #8572D7 #AEA2E5

Accessibility & contrast

On white

6.80
#5C42CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#5C42CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5C42CA
6.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C42CA#FFFFFF#000000##FFFFFF
##5C42CA1.006.803.096.80
#FFFFFF6.801.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FCE
Deuteranopia (green-blind)
#0057C7
Tritanopia (blue-blind)
#2B6580
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5c42ca;
/* rgb */ color: rgb(92, 66, 202);
/* oklch */ color: oklch(49.1% 0.200 285.1);
Tailwind
colors: {
  custom: {
    50: '#9478db',
    500: '#5c42ca',
    950: '#000000',
  },
}
SCSS
$custom: #5c42ca;
$custom-light: #9478db;
$custom-dark: #000000;
JSON
{
  "hex": "#5c42ca",
  "rgb": {
    "r": 92,
    "g": 66,
    "b": 202
  },
  "hsl": {
    "h": 251.471,
    "s": 56.198,
    "l": 52.549
  },
  "oklch": {
    "l": 0.49078,
    "c": 0.19953,
    "h": 285.1
  },
  "luminance": 0.10436
}

Semantic roles & 50–950 ramp

primary
#5C42CA
secondary
#C6D196
accent
#DF48C3
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5C42CA

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

Preview Lab → · Contrast checker → · Palette generator →

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