#5B41CA#5B41CA

#5B41CA is a mid, highly saturated violet. Relative luminance 0.103; OKLCH L 48.8% C 0.201 H 284.9°. Best body text is #FFFFFF at 6.88:1 contrast (WCAG AA passes).

Color values

HEX#5B41CA
RGBrgb(91, 65, 202)
HSLhsl(251, 56%, 52%)
HSVhsv(251, 68%, 79%)
CMYKcmyk(55%, 67.8%, 0%, 20.8%)
CIE-LABlab(38.32, 46.81, -67.50)
CIE-LCHlch(38.32, 82.14, 304.74°)
OKLaboklab(48.85% 0.0516 -0.1941)
OKLCHoklch(48.85% 0.201 284.9)
XYZxyz(16.8621, 10.2680, 56.9591)
Luminance0.1027 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B41CA #B0CA41
analogous
#416BCA #5B41CA #A041CA
triadic
#5B41CA #CA5B41 #41CA5B
tetradic
#5B41CA #CA416B #B0CA41 #41CAA0
square
#5B41CA #CA416B #B0CA41 #41CAA0
split-complementary
#5B41CA #CAA041 #6BCA41
monochromatic
#2F2071 #432DA1 #5B41CA #8471D7 #AEA1E5

Accessibility & contrast

On white

6.88
#5B41CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#5B41CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B41CA
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B41CA#FFFFFF#000000##FFFFFF
##5B41CA1.006.883.056.88
#FFFFFF6.881.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ECE
Deuteranopia (green-blind)
#0056C7
Tritanopia (blue-blind)
#296480
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5b41ca;
/* rgb */ color: rgb(91, 65, 202);
/* oklch */ color: oklch(48.8% 0.201 284.9);
Tailwind
colors: {
  custom: {
    50: '#9478db',
    500: '#5b41ca',
    950: '#000000',
  },
}
SCSS
$custom: #5b41ca;
$custom-light: #9478db;
$custom-dark: #000000;
JSON
{
  "hex": "#5b41ca",
  "rgb": {
    "r": 91,
    "g": 65,
    "b": 202
  },
  "hsl": {
    "h": 251.387,
    "s": 56.379,
    "l": 52.353
  },
  "oklch": {
    "l": 0.48845,
    "c": 0.20081,
    "h": 284.9
  },
  "luminance": 0.10269
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5B41CA

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

Preview Lab → · Contrast checker → · Palette generator →

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