#5B3CC0#5B3CC0

#5B3CC0 is a mid, vivid violet. Relative luminance 0.093; OKLCH L 47.3% C 0.194 H 287.2°. Best body text is #FFFFFF at 7.36:1 contrast (WCAG AA passes).

Color values

HEX#5B3CC0
RGBrgb(91, 60, 192)
HSLhsl(254, 52%, 49%)
HSVhsv(254, 69%, 75%)
CMYKcmyk(52.6%, 68.7%, 0%, 24.7%)
CIE-LABlab(36.48, 46.61, -64.67)
CIE-LCHlch(36.48, 79.72, 305.79°)
OKLaboklab(47.27% 0.0576 -0.1857)
OKLCHoklch(47.27% 0.194 287.2)
XYZxyz(15.4419, 9.2609, 50.8328)
Luminance0.0926 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3CC0 #A1C03C
analogous
#3C5FC0 #5B3CC0 #9D3CC0
triadic
#5B3CC0 #C05B3C #3CC05B
tetradic
#5B3CC0 #C03C5F #A1C03C #3CC09D
square
#5B3CC0 #C03C5F #A1C03C #3CC09D
split-complementary
#5B3CC0 #C09D3C #5FC03C
monochromatic
#2F1F63 #452D91 #5B3CC0 #8169D0 #A898DF

Accessibility & contrast

On white

7.36
#5B3CC0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#5B3CC0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B3CC0
7.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3CC0#FFFFFF#000000##FFFFFF
##5B3CC01.007.362.857.36
#FFFFFF7.361.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C4
Deuteranopia (green-blind)
#0052BD
Tritanopia (blue-blind)
#335E79
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5b3cc0;
/* rgb */ color: rgb(91, 60, 192);
/* oklch */ color: oklch(47.3% 0.194 287.2);
Tailwind
colors: {
  custom: {
    50: '#9374d4',
    500: '#5b3cc0',
    950: '#000000',
  },
}
SCSS
$custom: #5b3cc0;
$custom-light: #9374d4;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3cc0",
  "rgb": {
    "r": 91,
    "g": 60,
    "b": 192
  },
  "hsl": {
    "h": 254.091,
    "s": 52.381,
    "l": 49.412
  },
  "oklch": {
    "l": 0.47269,
    "c": 0.19449,
    "h": 287.2
  },
  "luminance": 0.09262
}

Semantic roles & 50–950 ramp

primary
#5B3CC0
secondary
#BCCA8D
accent
#DC4CBA
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5B3CC0

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

Preview Lab → · Contrast checker → · Palette generator →

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