#5B3CC5#5B3CC5

#5B3CC5 is a mid, highly saturated violet. Relative luminance 0.095; OKLCH L 47.7% C 0.201 H 286.4°. Best body text is #FFFFFF at 7.25:1 contrast (WCAG AA passes).

Color values

HEX#5B3CC5
RGBrgb(91, 60, 197)
HSLhsl(254, 54%, 50%)
HSVhsv(254, 70%, 77%)
CMYKcmyk(53.8%, 69.5%, 0%, 22.7%)
CIE-LABlab(36.90, 48.07, -66.90)
CIE-LCHlch(36.90, 82.38, 305.70°)
OKLaboklab(47.7% 0.0568 -0.1923)
OKLCHoklch(47.7% 0.201 286.4)
XYZxyz(16.0053, 9.4862, 53.8002)
Luminance0.0949 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3CC5 #A6C53C
analogous
#3C61C5 #5B3CC5 #A03CC5
triadic
#5B3CC5 #C55B3C #3CC55B
tetradic
#5B3CC5 #C53C61 #A6C53C #3CC5A0
square
#5B3CC5 #C53C61 #A6C53C #3CC5A0
split-complementary
#5B3CC5 #C5A03C #61C53C
monochromatic
#2F1F68 #452D97 #5B3CC5 #836BD3 #AA9AE1

Accessibility & contrast

On white

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

On black

2.90
#5B3CC5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5B3CC5#FFFFFF#000000##FFFFFF
##5B3CC51.007.252.907.25
#FFFFFF7.251.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.251.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b3cc5;
/* rgb */ color: rgb(91, 60, 197);
/* oklch */ color: oklch(47.7% 0.201 286.4);
Tailwind
colors: {
  custom: {
    50: '#9474d8',
    500: '#5b3cc5',
    950: '#000000',
  },
}
SCSS
$custom: #5b3cc5;
$custom-light: #9474d8;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3cc5",
  "rgb": {
    "r": 91,
    "g": 60,
    "b": 197
  },
  "hsl": {
    "h": 253.577,
    "s": 54.15,
    "l": 50.392
  },
  "oklch": {
    "l": 0.47702,
    "c": 0.20052,
    "h": 286.4
  },
  "luminance": 0.09487
}

Semantic roles & 50–950 ramp

primary
#5B3CC5
secondary
#BFCD90
accent
#DE4ABC
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5B3CC5

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

Preview Lab → · Contrast checker → · Palette generator →

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