#5C42BB#5C42BB

#5C42BB is a mid, vivid violet. Relative luminance 0.098; OKLCH L 47.8% C 0.181 H 287.4°. Best body text is #FFFFFF at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#5C42BB
RGBrgb(92, 66, 187)
HSLhsl(253, 48%, 50%)
HSVhsv(253, 65%, 73%)
CMYKcmyk(50.8%, 64.7%, 0%, 26.7%)
CIE-LABlab(37.41, 41.96, -60.22)
CIE-LCHlch(37.41, 73.40, 304.87°)
OKLaboklab(47.83% 0.054 -0.1727)
OKLCHoklch(47.83% 0.181 287.4)
XYZxyz(15.3289, 9.7589, 48.0800)
Luminance0.0976 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C42BB #A1BB42
analogous
#4264BB #5C42BB #9942BB
triadic
#5C42BB #BB5C42 #42BB5C
tetradic
#5C42BB #BB4264 #A1BB42 #42BB99
square
#5C42BB #BB4264 #A1BB42 #42BB99
split-complementary
#5C42BB #BB9942 #64BB42
monochromatic
#2F2261 #46328E #5C42BB #826ECC #A99CDC

Accessibility & contrast

On white

7.11
#5C42BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#5C42BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C42BB
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C42BB#FFFFFF#000000##FFFFFF
##5C42BB1.007.112.957.11
#FFFFFF7.111.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BBF
Deuteranopia (green-blind)
#0055B9
Tritanopia (blue-blind)
#395F78
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5c42bb;
/* rgb */ color: rgb(92, 66, 187);
/* oklch */ color: oklch(47.8% 0.181 287.4);
Tailwind
colors: {
  custom: {
    50: '#9278d0',
    500: '#5c42bb',
    950: '#000000',
  },
}
SCSS
$custom: #5c42bb;
$custom-light: #9278d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5c42bb",
  "rgb": {
    "r": 92,
    "g": 66,
    "b": 187
  },
  "hsl": {
    "h": 252.893,
    "s": 47.826,
    "l": 49.608
  },
  "oklch": {
    "l": 0.47832,
    "c": 0.1809,
    "h": 287.4
  },
  "luminance": 0.0976
}

Semantic roles & 50–950 ramp

primary
#5C42BB
secondary
#BCC891
accent
#D750BA
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0914
muted
#7E7B82

Preview Lab

Preview with #5C42BB

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

Preview Lab → · Contrast checker → · Palette generator →

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