#5B41DC#5B41DC

#5B41DC is a mid, highly saturated violet. Relative luminance 0.112; OKLCH L 50.4% C 0.222 H 282.6°. Best body text is #FFFFFF at 6.49:1 contrast (WCAG AA passes).

Color values

HEX#5B41DC
RGBrgb(91, 65, 220)
HSLhsl(250, 69%, 56%)
HSVhsv(250, 70%, 86%)
CMYKcmyk(58.6%, 70.5%, 0%, 13.7%)
CIE-LABlab(39.87, 52.16, -75.34)
CIE-LCHlch(39.87, 91.63, 304.70°)
OKLaboklab(50.43% 0.0485 -0.217)
OKLCHoklch(50.43% 0.222 282.6)
XYZxyz(19.1189, 11.1708, 68.8450)
Luminance0.1117 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B41DC #C2DC41
analogous
#4174DC #5B41DC #A941DC
triadic
#5B41DC #DC5B41 #41DC5B
tetradic
#5B41DC #DC4174 #C2DC41 #41DCA9
square
#5B41DC #DC4174 #C2DC41 #41DCA9
split-complementary
#5B41DC #DCA941 #74DC41
monochromatic
#2C1989 #3D23BD #5B41DC #8875E6 #B4A8EF

Accessibility & contrast

On white

6.49
#5B41DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#5B41DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B41DC
6.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B41DC#FFFFFF#000000##FFFFFF
##5B41DC1.006.493.236.49
#FFFFFF6.491.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063E1
Deuteranopia (green-blind)
#0059D9
Tritanopia (blue-blind)
#006B8A
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5b41dc;
/* rgb */ color: rgb(91, 65, 220);
/* oklch */ color: oklch(50.4% 0.222 282.6);
Tailwind
colors: {
  custom: {
    50: '#9778e8',
    500: '#5b41dc',
    950: '#000000',
  },
}
SCSS
$custom: #5b41dc;
$custom-light: #9778e8;
$custom-dark: #000000;
JSON
{
  "hex": "#5b41dc",
  "rgb": {
    "r": 91,
    "g": 65,
    "b": 220
  },
  "hsl": {
    "h": 250.065,
    "s": 68.889,
    "l": 55.882
  },
  "oklch": {
    "l": 0.50427,
    "c": 0.2224,
    "h": 282.6
  },
  "luminance": 0.11172
}

Semantic roles & 50–950 ramp

primary
#5B41DC
secondary
#D2DD9C
accent
#EC3CCE
background
#FAF7FE
surface
#F3EDFD
border
#CDC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5B41DC

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

Preview Lab → · Contrast checker → · Palette generator →

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