#5B41CE#5B41CE

#5B41CE is a mid, highly saturated violet. Relative luminance 0.105; OKLCH L 49.2% C 0.206 H 284.3°. Best body text is #FFFFFF at 6.79:1 contrast (WCAG AA passes).

Color values

HEX#5B41CE
RGBrgb(91, 65, 206)
HSLhsl(251, 59%, 53%)
HSVhsv(251, 68%, 81%)
CMYKcmyk(55.8%, 68.4%, 0%, 19.2%)
CIE-LABlab(38.66, 48.01, -69.27)
CIE-LCHlch(38.66, 84.27, 304.72°)
OKLaboklab(49.19% 0.051 -0.1992)
OKLCHoklch(49.19% 0.206 284.3)
XYZxyz(17.3419, 10.4599, 59.4857)
Luminance0.1046 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B41CE #B4CE41
analogous
#416DCE #5B41CE #A141CE
triadic
#5B41CE #CE5B41 #41CE5B
tetradic
#5B41CE #CE416D #B4CE41 #41CEA1
square
#5B41CE #CE416D #B4CE41 #41CEA1
split-complementary
#5B41CE #CEA141 #6DCE41
monochromatic
#2F1E76 #422BA7 #5B41CE #8572DB #AFA2E7

Accessibility & contrast

On white

6.79
#5B41CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #5B41CE
6.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B41CE#FFFFFF#000000##FFFFFF
##5B41CE1.006.793.096.79
#FFFFFF6.791.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD2
Deuteranopia (green-blind)
#0056CB
Tritanopia (blue-blind)
#236682
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5b41ce;
/* rgb */ color: rgb(91, 65, 206);
/* oklch */ color: oklch(49.2% 0.206 284.3);
Tailwind
colors: {
  custom: {
    50: '#9578de',
    500: '#5b41ce',
    950: '#000000',
  },
}
SCSS
$custom: #5b41ce;
$custom-light: #9578de;
$custom-dark: #000000;
JSON
{
  "hex": "#5b41ce",
  "rgb": {
    "r": 91,
    "g": 65,
    "b": 206
  },
  "hsl": {
    "h": 251.064,
    "s": 58.996,
    "l": 53.137
  },
  "oklch": {
    "l": 0.4919,
    "c": 0.20566,
    "h": 284.3
  },
  "luminance": 0.10461
}

Semantic roles & 50–950 ramp

primary
#5B41CE
secondary
#C9D497
accent
#E246C5
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5B41CE

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

Preview Lab → · Contrast checker → · Palette generator →

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