#5B41DD#5B41DD

#5B41DD is a mid, highly saturated violet. Relative luminance 0.112; OKLCH L 50.5% C 0.224 H 282.5°. Best body text is #FFFFFF at 6.47:1 contrast (WCAG AA passes).

Color values

HEX#5B41DD
RGBrgb(91, 65, 221)
HSLhsl(250, 70%, 56%)
HSVhsv(250, 71%, 87%)
CMYKcmyk(58.8%, 70.6%, 0%, 13.3%)
CIE-LABlab(39.95, 52.45, -75.76)
CIE-LCHlch(39.95, 92.15, 304.70°)
OKLaboklab(50.52% 0.0483 -0.2183)
OKLCHoklch(50.52% 0.224 282.5)
XYZxyz(19.2518, 11.2239, 69.5445)
Luminance0.1123 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B41DD #C3DD41
analogous
#4175DD #5B41DD #A941DD
triadic
#5B41DD #DD5B41 #41DD5B
tetradic
#5B41DD #DD4175 #C3DD41 #41DDA9
square
#5B41DD #DD4175 #C3DD41 #41DDA9
split-complementary
#5B41DD #DDA941 #75DD41
monochromatic
#2C198B #3C22BF #5B41DD #8875E6 #B5A9F0

Accessibility & contrast

On white

6.47
#5B41DD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#5B41DD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B41DD
6.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B41DD#FFFFFF#000000##FFFFFF
##5B41DD1.006.473.256.47
#FFFFFF6.471.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063E2
Deuteranopia (green-blind)
#0059DA
Tritanopia (blue-blind)
#006B8B
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5b41dd;
/* rgb */ color: rgb(91, 65, 221);
/* oklch */ color: oklch(50.5% 0.224 282.5);
Tailwind
colors: {
  custom: {
    50: '#9778e9',
    500: '#5b41dd',
    950: '#000000',
  },
}
SCSS
$custom: #5b41dd;
$custom-light: #9778e9;
$custom-dark: #000000;
JSON
{
  "hex": "#5b41dd",
  "rgb": {
    "r": 91,
    "g": 65,
    "b": 221
  },
  "hsl": {
    "h": 250,
    "s": 69.643,
    "l": 56.078
  },
  "oklch": {
    "l": 0.50517,
    "c": 0.22358,
    "h": 282.5
  },
  "luminance": 0.11225
}

Semantic roles & 50–950 ramp

primary
#5B41DD
secondary
#D2DD9D
accent
#EC3BCF
background
#FAF7FE
surface
#F3EDFD
border
#CDC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5B41DD

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

Preview Lab → · Contrast checker → · Palette generator →

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