#5C3EC6#5C3EC6

#5C3EC6 is a mid, vivid violet. Relative luminance 0.098; OKLCH L 48.2% C 0.199 H 286.4°. Best body text is #FFFFFF at 7.10:1 contrast (WCAG AA passes).

Color values

HEX#5C3EC6
RGBrgb(92, 62, 198)
HSLhsl(253, 54%, 51%)
HSVhsv(253, 69%, 78%)
CMYKcmyk(53.5%, 68.7%, 0%, 22.4%)
CIE-LABlab(37.48, 47.44, -66.55)
CIE-LCHlch(37.48, 81.73, 305.49°)
OKLaboklab(48.16% 0.0563 -0.1912)
OKLCHoklch(48.16% 0.199 286.4)
XYZxyz(16.3263, 9.7969, 54.4459)
Luminance0.0980 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C3EC6 #A8C63E
analogous
#3E64C6 #5C3EC6 #A03EC6
triadic
#5C3EC6 #C65C3E #3EC65C
tetradic
#5C3EC6 #C63E64 #A8C63E #3EC6A0
square
#5C3EC6 #C63E64 #A8C63E #3EC6A0
split-complementary
#5C3EC6 #C6A03E #64C63E
monochromatic
#301F6A #452D99 #5C3EC6 #846DD4 #AC9CE2

Accessibility & contrast

On white

7.10
#5C3EC6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#5C3EC6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C3EC6
7.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C3EC6#FFFFFF#000000##FFFFFF
##5C3EC61.007.102.967.10
#FFFFFF7.101.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CCA
Deuteranopia (green-blind)
#0054C3
Tritanopia (blue-blind)
#30617D
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5c3ec6;
/* rgb */ color: rgb(92, 62, 198);
/* oklch */ color: oklch(48.2% 0.199 286.4);
Tailwind
colors: {
  custom: {
    50: '#9476d8',
    500: '#5c3ec6',
    950: '#000000',
  },
}
SCSS
$custom: #5c3ec6;
$custom-light: #9476d8;
$custom-dark: #000000;
JSON
{
  "hex": "#5c3ec6",
  "rgb": {
    "r": 92,
    "g": 62,
    "b": 198
  },
  "hsl": {
    "h": 253.235,
    "s": 54.4,
    "l": 50.98
  },
  "oklch": {
    "l": 0.48159,
    "c": 0.19934,
    "h": 286.4
  },
  "luminance": 0.09798
}

Semantic roles & 50–950 ramp

primary
#5C3EC6
secondary
#C1CE92
accent
#DE4ABD
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5C3EC6

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

Preview Lab → · Contrast checker → · Palette generator →

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