#5B41CF#5B41CF

#5B41CF is a mid, highly saturated violet. Relative luminance 0.105; OKLCH L 49.3% C 0.207 H 284.2°. Best body text is #FFFFFF at 6.77:1 contrast (WCAG AA passes).

Color values

HEX#5B41CF
RGBrgb(91, 65, 207)
HSLhsl(251, 60%, 53%)
HSVhsv(251, 69%, 81%)
CMYKcmyk(56%, 68.6%, 0%, 18.8%)
CIE-LABlab(38.74, 48.30, -69.70)
CIE-LCHlch(38.74, 84.80, 304.72°)
OKLaboklab(49.28% 0.0508 -0.2005)
OKLCHoklch(49.28% 0.207 284.2)
XYZxyz(17.4637, 10.5087, 60.1275)
Luminance0.1051 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B41CF #B5CF41
analogous
#416ECF #5B41CF #A241CF
triadic
#5B41CF #CF5B41 #41CF5B
tetradic
#5B41CF #CF416E #B5CF41 #41CFA2
square
#5B41CF #CF416E #B5CF41 #41CFA2
split-complementary
#5B41CF #CFA241 #6ECF41
monochromatic
#2F1E77 #422BA8 #5B41CF #8572DB #AFA3E8

Accessibility & contrast

On white

6.77
#5B41CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#5B41CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B41CF
6.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B41CF#FFFFFF#000000##FFFFFF
##5B41CF1.006.773.106.77
#FFFFFF6.771.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD3
Deuteranopia (green-blind)
#0057CC
Tritanopia (blue-blind)
#226683
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5b41cf;
/* rgb */ color: rgb(91, 65, 207);
/* oklch */ color: oklch(49.3% 0.207 284.2);
Tailwind
colors: {
  custom: {
    50: '#9578df',
    500: '#5b41cf',
    950: '#000000',
  },
}
SCSS
$custom: #5b41cf;
$custom-light: #9578df;
$custom-dark: #000000;
JSON
{
  "hex": "#5b41cf",
  "rgb": {
    "r": 91,
    "g": 65,
    "b": 207
  },
  "hsl": {
    "h": 250.986,
    "s": 59.664,
    "l": 53.333
  },
  "oklch": {
    "l": 0.49277,
    "c": 0.20687,
    "h": 284.2
  },
  "luminance": 0.1051
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5B41CF

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

Preview Lab → · Contrast checker → · Palette generator →

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