#5B41D0#5B41D0

#5B41D0 is a mid, highly saturated violet. Relative luminance 0.106; OKLCH L 49.4% C 0.208 H 284.1°. Best body text is #FFFFFF at 6.75:1 contrast (WCAG AA passes).

Color values

HEX#5B41D0
RGBrgb(91, 65, 208)
HSLhsl(251, 60%, 54%)
HSVhsv(251, 69%, 82%)
CMYKcmyk(56.2%, 68.8%, 0%, 18.4%)
CIE-LABlab(38.83, 48.60, -70.14)
CIE-LCHlch(38.83, 85.33, 304.72°)
OKLaboklab(49.36% 0.0506 -0.2018)
OKLCHoklch(49.36% 0.208 284.1)
XYZxyz(17.5864, 10.5577, 60.7734)
Luminance0.1056 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B41D0 #B6D041
analogous
#416ED0 #5B41D0 #A241D0
triadic
#5B41D0 #D05B41 #41D05B
tetradic
#5B41D0 #D0416E #B6D041 #41D0A2
square
#5B41D0 #D0416E #B6D041 #41D0A2
split-complementary
#5B41D0 #D0A241 #6ED041
monochromatic
#2E1E79 #412AAA #5B41D0 #8572DC #B0A3E8

Accessibility & contrast

On white

6.75
#5B41D0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#5B41D0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B41D0
6.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B41D0#FFFFFF#000000##FFFFFF
##5B41D01.006.753.116.75
#FFFFFF6.751.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D4
Deuteranopia (green-blind)
#0057CD
Tritanopia (blue-blind)
#206683
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5b41d0;
/* rgb */ color: rgb(91, 65, 208);
/* oklch */ color: oklch(49.4% 0.208 284.1);
Tailwind
colors: {
  custom: {
    50: '#9578df',
    500: '#5b41d0',
    950: '#000000',
  },
}
SCSS
$custom: #5b41d0;
$custom-light: #9578df;
$custom-dark: #000000;
JSON
{
  "hex": "#5b41d0",
  "rgb": {
    "r": 91,
    "g": 65,
    "b": 208
  },
  "hsl": {
    "h": 250.909,
    "s": 60.338,
    "l": 53.529
  },
  "oklch": {
    "l": 0.49364,
    "c": 0.20808,
    "h": 284.1
  },
  "luminance": 0.10559
}

Semantic roles & 50–950 ramp

primary
#5B41D0
secondary
#CAD598
accent
#E344C7
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5B41D0

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

Preview Lab → · Contrast checker → · Palette generator →

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