#5B3DCA#5B3DCA

#5B3DCA is a mid, highly saturated violet. Relative luminance 0.098; OKLCH L 48.3% C 0.205 H 285.5°. Best body text is #FFFFFF at 7.08:1 contrast (WCAG AA passes).

Color values

HEX#5B3DCA
RGBrgb(91, 61, 202)
HSLhsl(253, 57%, 52%)
HSVhsv(253, 70%, 79%)
CMYKcmyk(55%, 69.8%, 0%, 20.8%)
CIE-LABlab(37.53, 49.00, -68.79)
CIE-LCHlch(37.53, 84.46, 305.46°)
OKLaboklab(48.28% 0.055 -0.1979)
OKLCHoklch(48.28% 0.205 285.5)
XYZxyz(16.6406, 9.8250, 56.8852)
Luminance0.0983 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3DCA #ACCA3D
analogous
#3D66CA #5B3DCA #A23DCA
triadic
#5B3DCA #CA5B3D #3DCA5B
tetradic
#5B3DCA #CA3D66 #ACCA3D #3DCAA2
square
#5B3DCA #CA3D66 #ACCA3D #3DCAA2
split-complementary
#5B3DCA #CAA23D #66CA3D
monochromatic
#2F1E6E #442B9F #5B3DCA #846DD7 #AC9DE4

Accessibility & contrast

On white

7.08
#5B3DCA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#5B3DCA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B3DCA
7.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3DCA#FFFFFF#000000##FFFFFF
##5B3DCA1.007.082.977.08
#FFFFFF7.081.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CCE
Deuteranopia (green-blind)
#0054C7
Tritanopia (blue-blind)
#29627F
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5b3dca;
/* rgb */ color: rgb(91, 61, 202);
/* oklch */ color: oklch(48.3% 0.205 285.5);
Tailwind
colors: {
  custom: {
    50: '#9475db',
    500: '#5b3dca',
    950: '#000000',
  },
}
SCSS
$custom: #5b3dca;
$custom-light: #9475db;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3dca",
  "rgb": {
    "r": 91,
    "g": 61,
    "b": 202
  },
  "hsl": {
    "h": 252.766,
    "s": 57.085,
    "l": 51.569
  },
  "oklch": {
    "l": 0.48278,
    "c": 0.20537,
    "h": 285.5
  },
  "luminance": 0.09826
}

Semantic roles & 50–950 ramp

primary
#5B3DCA
secondary
#C3D092
accent
#E047C0
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5B3DCA

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

Preview Lab → · Contrast checker → · Palette generator →

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