#5B41C9#5B41C9

#5B41C9 is a mid, vivid violet. Relative luminance 0.102; OKLCH L 48.8% C 0.200 H 285.0°. Best body text is #FFFFFF at 6.90:1 contrast (WCAG AA passes).

Color values

HEX#5B41C9
RGBrgb(91, 65, 201)
HSLhsl(251, 56%, 52%)
HSVhsv(251, 68%, 79%)
CMYKcmyk(54.7%, 67.7%, 0%, 21.2%)
CIE-LABlab(38.24, 46.52, -67.05)
CIE-LCHlch(38.24, 81.61, 304.75°)
OKLaboklab(48.76% 0.0517 -0.1928)
OKLCHoklch(48.76% 0.2 285)
XYZxyz(16.7441, 10.2208, 56.3375)
Luminance0.1022 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B41C9 #AFC941
analogous
#416BC9 #5B41C9 #9F41C9
triadic
#5B41C9 #C95B41 #41C95B
tetradic
#5B41C9 #C9416B #AFC941 #41C99F
square
#5B41C9 #C9416B #AFC941 #41C99F
split-complementary
#5B41C9 #C99F41 #6BC941
monochromatic
#2F2070 #432D9F #5B41C9 #8471D7 #ADA0E4

Accessibility & contrast

On white

6.90
#5B41C9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#5B41C9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B41C9
6.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B41C9#FFFFFF#000000##FFFFFF
##5B41C91.006.903.046.90
#FFFFFF6.901.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ECD
Deuteranopia (green-blind)
#0056C6
Tritanopia (blue-blind)
#2A6480
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5b41c9;
/* rgb */ color: rgb(91, 65, 201);
/* oklch */ color: oklch(48.8% 0.200 285.0);
Tailwind
colors: {
  custom: {
    50: '#9478da',
    500: '#5b41c9',
    950: '#000000',
  },
}
SCSS
$custom: #5b41c9;
$custom-light: #9478da;
$custom-dark: #000000;
JSON
{
  "hex": "#5b41c9",
  "rgb": {
    "r": 91,
    "g": 65,
    "b": 201
  },
  "hsl": {
    "h": 251.471,
    "s": 55.738,
    "l": 52.157
  },
  "oklch": {
    "l": 0.4876,
    "c": 0.19958,
    "h": 285
  },
  "luminance": 0.10222
}

Semantic roles & 50–950 ramp

primary
#5B41C9
secondary
#C5D195
accent
#DF49C2
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5B41C9

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

Preview Lab → · Contrast checker → · Palette generator →

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