#5C41B2#5C41B2

#5C41B2 is a mid, vivid violet. Relative luminance 0.093; OKLCH L 47.0% C 0.171 H 289.1°. Best body text is #FFFFFF at 7.36:1 contrast (WCAG AA passes).

Color values

HEX#5C41B2
RGBrgb(92, 65, 178)
HSLhsl(254, 47%, 48%)
HSVhsv(254, 63%, 70%)
CMYKcmyk(48.3%, 63.5%, 0%, 30.2%)
CIE-LABlab(36.50, 39.88, -56.38)
CIE-LCHlch(36.50, 69.06, 305.27°)
OKLaboklab(46.96% 0.0559 -0.1614)
OKLCHoklch(46.96% 0.171 289.1)
XYZxyz(14.3375, 9.2697, 43.1446)
Luminance0.0927 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C41B2 #97B241
analogous
#415FB2 #5C41B2 #9441B2
triadic
#5C41B2 #B25C41 #41B25C
tetradic
#5C41B2 #B2415F #97B241 #41B294
square
#5C41B2 #B2415F #97B241 #41B294
split-complementary
#5C41B2 #B29441 #5FB241
monochromatic
#2E2058 #453185 #5C41B2 #7F68C8 #A595D8

Accessibility & contrast

On white

7.36
#5C41B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#5C41B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C41B2
7.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C41B2#FFFFFF#000000##FFFFFF
##5C41B21.007.362.857.36
#FFFFFF7.361.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B6
Deuteranopia (green-blind)
#0053B0
Tritanopia (blue-blind)
#405C73
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5c41b2;
/* rgb */ color: rgb(92, 65, 178);
/* oklch */ color: oklch(47.0% 0.171 289.1);
Tailwind
colors: {
  custom: {
    50: '#9177ca',
    500: '#5c41b2',
    950: '#000000',
  },
}
SCSS
$custom: #5c41b2;
$custom-light: #9177ca;
$custom-dark: #000000;
JSON
{
  "hex": "#5c41b2",
  "rgb": {
    "r": 92,
    "g": 65,
    "b": 178
  },
  "hsl": {
    "h": 254.336,
    "s": 46.502,
    "l": 47.647
  },
  "oklch": {
    "l": 0.46956,
    "c": 0.17079,
    "h": 289.1
  },
  "luminance": 0.0927
}

Semantic roles & 50–950 ramp

primary
#5C41B2
secondary
#B6C48B
accent
#D652B6
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0D0913
muted
#7E7B82

Preview Lab

Preview with #5C41B2

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

Preview Lab → · Contrast checker → · Palette generator →

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