#5B3EC0#5B3EC0

#5B3EC0 is a mid, vivid violet. Relative luminance 0.095; OKLCH L 47.6% C 0.192 H 286.9°. Best body text is #FFFFFF at 7.25:1 contrast (WCAG AA passes).

Color values

HEX#5B3EC0
RGBrgb(91, 62, 192)
HSLhsl(253, 51%, 50%)
HSVhsv(253, 68%, 75%)
CMYKcmyk(52.6%, 67.7%, 0%, 24.7%)
CIE-LABlab(36.88, 45.52, -64.01)
CIE-LCHlch(36.88, 78.54, 305.41°)
OKLaboklab(47.56% 0.0558 -0.1838)
OKLCHoklch(47.56% 0.192 286.9)
XYZxyz(15.5486, 9.4744, 50.8684)
Luminance0.0948 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3EC0 #A3C03E
analogous
#3E62C0 #5B3EC0 #9C3EC0
triadic
#5B3EC0 #C05B3E #3EC05B
tetradic
#5B3EC0 #C03E62 #A3C03E #3EC09C
square
#5B3EC0 #C03E62 #A3C03E #3EC09C
split-complementary
#5B3EC0 #C09C3E #62C03E
monochromatic
#2F2063 #452F92 #5B3EC0 #826CCF #A99ADE

Accessibility & contrast

On white

7.25
#5B3EC0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#5B3EC0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B3EC0
7.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3EC0#FFFFFF#000000##FFFFFF
##5B3EC01.007.252.897.25
#FFFFFF7.251.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC4
Deuteranopia (green-blind)
#0053BD
Tritanopia (blue-blind)
#335F7A
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5b3ec0;
/* rgb */ color: rgb(91, 62, 192);
/* oklch */ color: oklch(47.6% 0.192 286.9);
Tailwind
colors: {
  custom: {
    50: '#9375d4',
    500: '#5b3ec0',
    950: '#000000',
  },
}
SCSS
$custom: #5b3ec0;
$custom-light: #9375d4;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3ec0",
  "rgb": {
    "r": 91,
    "g": 62,
    "b": 192
  },
  "hsl": {
    "h": 253.385,
    "s": 51.181,
    "l": 49.804
  },
  "oklch": {
    "l": 0.47556,
    "c": 0.19212,
    "h": 286.9
  },
  "luminance": 0.09475
}

Semantic roles & 50–950 ramp

primary
#5B3EC0
secondary
#BDCA8F
accent
#DB4DBB
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5B3EC0

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

Preview Lab → · Contrast checker → · Palette generator →

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