#5B41BE#5B41BE

#5B41BE is a mid, vivid violet. Relative luminance 0.097; OKLCH L 47.8% C 0.186 H 286.6°. Best body text is #FFFFFF at 7.13:1 contrast (WCAG AA passes).

Color values

HEX#5B41BE
RGBrgb(91, 65, 190)
HSLhsl(252, 49%, 50%)
HSVhsv(252, 66%, 75%)
CMYKcmyk(52.1%, 65.8%, 0%, 25.5%)
CIE-LABlab(37.34, 43.24, -62.10)
CIE-LCHlch(37.34, 75.67, 304.85°)
OKLaboklab(47.83% 0.0533 -0.1782)
OKLCHoklch(47.83% 0.186 286.6)
XYZxyz(15.4962, 9.7217, 49.7652)
Luminance0.0972 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B41BE #A4BE41
analogous
#4165BE #5B41BE #9A41BE
triadic
#5B41BE #BE5B41 #41BE5B
tetradic
#5B41BE #BE4165 #A4BE41 #41BE9A
square
#5B41BE #BE4165 #A4BE41 #41BE9A
split-complementary
#5B41BE #BE9A41 #65BE41
monochromatic
#2F2263 #453190 #5B41BE #826FCE #AA9CDD

Accessibility & contrast

On white

7.13
#5B41BE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#5B41BE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B41BE
7.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B41BE#FFFFFF#000000##FFFFFF
##5B41BE1.007.132.947.13
#FFFFFF7.131.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC2
Deuteranopia (green-blind)
#0054BC
Tritanopia (blue-blind)
#35607A
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5b41be;
/* rgb */ color: rgb(91, 65, 190);
/* oklch */ color: oklch(47.8% 0.186 286.6);
Tailwind
colors: {
  custom: {
    50: '#9277d3',
    500: '#5b41be',
    950: '#000000',
  },
}
SCSS
$custom: #5b41be;
$custom-light: #9277d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5b41be",
  "rgb": {
    "r": 91,
    "g": 65,
    "b": 190
  },
  "hsl": {
    "h": 252.48,
    "s": 49.02,
    "l": 50
  },
  "oklch": {
    "l": 0.47834,
    "c": 0.186,
    "h": 286.6
  },
  "luminance": 0.09722
}

Semantic roles & 50–950 ramp

primary
#5B41BE
secondary
#BEC991
accent
#D94FBC
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0914
muted
#7E7B83

Preview Lab

Preview with #5B41BE

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

Preview Lab → · Contrast checker → · Palette generator →

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