#5B3DC5#5B3DC5

#5B3DC5 is a mid, vivid violet. Relative luminance 0.096; OKLCH L 47.8% C 0.199 H 286.3°. Best body text is #FFFFFF at 7.20:1 contrast (WCAG AA passes).

Color values

HEX#5B3DC5
RGBrgb(91, 61, 197)
HSLhsl(253, 54%, 51%)
HSVhsv(253, 69%, 77%)
CMYKcmyk(53.8%, 69%, 0%, 22.7%)
CIE-LABlab(37.10, 47.53, -66.58)
CIE-LCHlch(37.10, 81.81, 305.52°)
OKLaboklab(47.84% 0.0559 -0.1914)
OKLCHoklch(47.84% 0.199 286.3)
XYZxyz(16.0582, 9.5920, 53.8178)
Luminance0.0959 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3DC5 #A7C53D
analogous
#3D63C5 #5B3DC5 #9F3DC5
triadic
#5B3DC5 #C55B3D #3DC55B
tetradic
#5B3DC5 #C53D63 #A7C53D #3DC59F
square
#5B3DC5 #C53D63 #A7C53D #3DC59F
split-complementary
#5B3DC5 #C59F3D #63C53D
monochromatic
#2F1F68 #452D98 #5B3DC5 #836CD3 #AB9BE1

Accessibility & contrast

On white

7.20
#5B3DC5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#5B3DC5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B3DC5
7.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3DC5#FFFFFF#000000##FFFFFF
##5B3DC51.007.202.927.20
#FFFFFF7.201.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC9
Deuteranopia (green-blind)
#0053C2
Tritanopia (blue-blind)
#2F607C
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5b3dc5;
/* rgb */ color: rgb(91, 61, 197);
/* oklch */ color: oklch(47.8% 0.199 286.3);
Tailwind
colors: {
  custom: {
    50: '#9475d8',
    500: '#5b3dc5',
    950: '#000000',
  },
}
SCSS
$custom: #5b3dc5;
$custom-light: #9475d8;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3dc5",
  "rgb": {
    "r": 91,
    "g": 61,
    "b": 197
  },
  "hsl": {
    "h": 253.235,
    "s": 53.968,
    "l": 50.588
  },
  "oklch": {
    "l": 0.47842,
    "c": 0.19937,
    "h": 286.3
  },
  "luminance": 0.09593
}

Semantic roles & 50–950 ramp

primary
#5B3DC5
secondary
#C0CD91
accent
#DD4ABD
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5B3DC5

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

Preview Lab → · Contrast checker → · Palette generator →

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