#5B3BC5#5B3BC5

#5B3BC5 is a mid, highly saturated violet. Relative luminance 0.094; OKLCH L 47.6% C 0.202 H 286.6°. Best body text is #FFFFFF at 7.30:1 contrast (WCAG AA passes).

Color values

HEX#5B3BC5
RGBrgb(91, 59, 197)
HSLhsl(254, 54%, 50%)
HSVhsv(254, 70%, 77%)
CMYKcmyk(53.8%, 70.1%, 0%, 22.7%)
CIE-LABlab(36.71, 48.61, -67.22)
CIE-LCHlch(36.71, 82.95, 305.87°)
OKLaboklab(47.56% 0.0576 -0.1932)
OKLCHoklch(47.56% 0.202 286.6)
XYZxyz(15.9534, 9.3825, 53.7829)
Luminance0.0938 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3BC5 #A5C53B
analogous
#3B60C5 #5B3BC5 #A03BC5
triadic
#5B3BC5 #C55B3B #3BC55B
tetradic
#5B3BC5 #C53B60 #A5C53B #3BC5A0
square
#5B3BC5 #C53B60 #A5C53B #3BC5A0
split-complementary
#5B3BC5 #C5A03B #60C53B
monochromatic
#2F1F67 #452C96 #5B3BC5 #836AD3 #AA99E1

Accessibility & contrast

On white

7.30
#5B3BC5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#5B3BC5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B3BC5
7.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3BC5#FFFFFF#000000##FFFFFF
##5B3BC51.007.302.887.30
#FFFFFF7.301.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC9
Deuteranopia (green-blind)
#0052C2
Tritanopia (blue-blind)
#2F5F7C
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5b3bc5;
/* rgb */ color: rgb(91, 59, 197);
/* oklch */ color: oklch(47.6% 0.202 286.6);
Tailwind
colors: {
  custom: {
    50: '#9474d8',
    500: '#5b3bc5',
    950: '#000000',
  },
}
SCSS
$custom: #5b3bc5;
$custom-light: #9474d8;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3bc5",
  "rgb": {
    "r": 91,
    "g": 59,
    "b": 197
  },
  "hsl": {
    "h": 253.913,
    "s": 54.331,
    "l": 50.196
  },
  "oklch": {
    "l": 0.47564,
    "c": 0.20164,
    "h": 286.6
  },
  "luminance": 0.09383
}

Semantic roles & 50–950 ramp

primary
#5B3BC5
secondary
#BECD8F
accent
#DE4ABB
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5B3BC5

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

Preview Lab → · Contrast checker → · Palette generator →

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