#5B3DC6#5B3DC6

#5B3DC6 is a mid, highly saturated violet. Relative luminance 0.096; OKLCH L 47.9% C 0.201 H 286.1°. Best body text is #FFFFFF at 7.17:1 contrast (WCAG AA passes).

Color values

HEX#5B3DC6
RGBrgb(91, 61, 198)
HSLhsl(253, 55%, 51%)
HSVhsv(253, 69%, 78%)
CMYKcmyk(54%, 69.2%, 0%, 22.4%)
CIE-LABlab(37.18, 47.82, -67.02)
CIE-LCHlch(37.18, 82.34, 305.51°)
OKLaboklab(47.93% 0.0557 -0.1927)
OKLCHoklch(47.93% 0.201 286.1)
XYZxyz(16.1731, 9.6380, 54.4232)
Luminance0.0964 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3DC6 #A8C63D
analogous
#3D63C6 #5B3DC6 #A03DC6
triadic
#5B3DC6 #C65B3D #3DC65B
tetradic
#5B3DC6 #C63D63 #A8C63D #3DC6A0
square
#5B3DC6 #C63D63 #A8C63D #3DC6A0
split-complementary
#5B3DC6 #C6A03D #63C63D
monochromatic
#2F1F6A #452D99 #5B3DC6 #836CD4 #AB9CE2

Accessibility & contrast

On white

7.17
#5B3DC6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#5B3DC6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B3DC6
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3DC6#FFFFFF#000000##FFFFFF
##5B3DC61.007.172.937.17
#FFFFFF7.171.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BCA
Deuteranopia (green-blind)
#0053C3
Tritanopia (blue-blind)
#2E617D
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5b3dc6;
/* rgb */ color: rgb(91, 61, 198);
/* oklch */ color: oklch(47.9% 0.201 286.1);
Tailwind
colors: {
  custom: {
    50: '#9475d8',
    500: '#5b3dc6',
    950: '#000000',
  },
}
SCSS
$custom: #5b3dc6;
$custom-light: #9475d8;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3dc6",
  "rgb": {
    "r": 91,
    "g": 61,
    "b": 198
  },
  "hsl": {
    "h": 253.139,
    "s": 54.582,
    "l": 50.784
  },
  "oklch": {
    "l": 0.47928,
    "c": 0.20057,
    "h": 286.1
  },
  "luminance": 0.09639
}

Semantic roles & 50–950 ramp

primary
#5B3DC6
secondary
#C0CE91
accent
#DE4ABE
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5B3DC6

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

Preview Lab → · Contrast checker → · Palette generator →

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