#5B3CC7#5B3CC7

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

Color values

HEX#5B3CC7
RGBrgb(91, 60, 199)
HSLhsl(253, 55%, 51%)
HSVhsv(253, 70%, 78%)
CMYKcmyk(54.3%, 69.8%, 0%, 22%)
CIE-LABlab(37.08, 48.66, -67.79)
CIE-LCHlch(37.08, 83.44, 305.67°)
OKLaboklab(47.88% 0.0564 -0.1949)
OKLCHoklch(47.88% 0.203 286.1)
XYZxyz(16.2360, 9.5785, 55.0151)
Luminance0.0958 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3CC7 #A8C73C
analogous
#3C62C7 #5B3CC7 #A03CC7
triadic
#5B3CC7 #C75B3C #3CC75B
tetradic
#5B3CC7 #C73C62 #A8C73C #3CC7A0
square
#5B3CC7 #C73C62 #A8C73C #3CC7A0
split-complementary
#5B3CC7 #C7A03C #62C73C
monochromatic
#2F1E6A #452C9A #5B3CC7 #836CD5 #AB9BE2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5B3CC7#FFFFFF#000000##FFFFFF
##5B3CC71.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)
#005BCB
Deuteranopia (green-blind)
#0053C4
Tritanopia (blue-blind)
#2D607D
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5b3cc7;
/* rgb */ color: rgb(91, 60, 199);
/* oklch */ color: oklch(47.9% 0.203 286.1);
Tailwind
colors: {
  custom: {
    50: '#9474d9',
    500: '#5b3cc7',
    950: '#000000',
  },
}
SCSS
$custom: #5b3cc7;
$custom-light: #9474d9;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3cc7",
  "rgb": {
    "r": 91,
    "g": 60,
    "b": 199
  },
  "hsl": {
    "h": 253.381,
    "s": 55.378,
    "l": 50.784
  },
  "oklch": {
    "l": 0.47876,
    "c": 0.20291,
    "h": 286.1
  },
  "luminance": 0.09579
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5B3CC7

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

Preview Lab → · Contrast checker → · Palette generator →

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