#5B41BF#5B41BF

#5B41BF is a mid, vivid violet. Relative luminance 0.098; OKLCH L 47.9% C 0.187 H 286.5°. Best body text is #FFFFFF at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#5B41BF
RGBrgb(91, 65, 191)
HSLhsl(252, 50%, 50%)
HSVhsv(252, 66%, 75%)
CMYKcmyk(52.4%, 66%, 0%, 25.1%)
CIE-LABlab(37.42, 43.54, -62.55)
CIE-LCHlch(37.42, 76.21, 304.84°)
OKLaboklab(47.92% 0.0531 -0.1795)
OKLCHoklch(47.92% 0.187 286.5)
XYZxyz(15.6059, 9.7655, 50.3427)
Luminance0.0977 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B41BF #A5BF41
analogous
#4166BF #5B41BF #9A41BF
triadic
#5B41BF #BF5B41 #41BF5B
tetradic
#5B41BF #BF4166 #A5BF41 #41BF9A
square
#5B41BF #BF4166 #A5BF41 #41BF9A
split-complementary
#5B41BF #BF9A41 #66BF41
monochromatic
#2F2264 #453192 #5B41BF #836FCE #AA9DDE

Accessibility & contrast

On white

7.11
#5B41BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#5B41BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B41BF
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B41BF#FFFFFF#000000##FFFFFF
##5B41BF1.007.112.957.11
#FFFFFF7.111.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b41bf;
/* rgb */ color: rgb(91, 65, 191);
/* oklch */ color: oklch(47.9% 0.187 286.5);
Tailwind
colors: {
  custom: {
    50: '#9277d3',
    500: '#5b41bf',
    950: '#000000',
  },
}
SCSS
$custom: #5b41bf;
$custom-light: #9277d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5b41bf",
  "rgb": {
    "r": 91,
    "g": 65,
    "b": 191
  },
  "hsl": {
    "h": 252.381,
    "s": 49.606,
    "l": 50.196
  },
  "oklch": {
    "l": 0.47917,
    "c": 0.18725,
    "h": 286.5
  },
  "luminance": 0.09766
}

Semantic roles & 50–950 ramp

primary
#5B41BF
secondary
#BECA92
accent
#D94FBD
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0914
muted
#7E7B83

Preview Lab

Preview with #5B41BF

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

Preview Lab → · Contrast checker → · Palette generator →

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