#5B3CB0#5B3CB0

#5B3CB0 is a mid, vivid violet. Relative luminance 0.086; OKLCH L 45.9% C 0.175 H 290.1°. Best body text is #FFFFFF at 7.73:1 contrast (WCAG AA passes).

Color values

HEX#5B3CB0
RGBrgb(91, 60, 176)
HSLhsl(256, 49%, 46%)
HSVhsv(256, 66%, 69%)
CMYKcmyk(48.3%, 65.9%, 0%, 31%)
CIE-LABlab(35.18, 41.96, -57.34)
CIE-LCHlch(35.18, 71.05, 306.19°)
OKLaboklab(45.93% 0.06 -0.1642)
OKLCHoklch(45.93% 0.175 290.1)
XYZxyz(13.7645, 8.5899, 41.9986)
Luminance0.0859 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3CB0 #91B03C
analogous
#3C57B0 #5B3CB0 #953CB0
triadic
#5B3CB0 #B05B3C #3CB05B
tetradic
#5B3CB0 #B03C57 #91B03C #3CB095
square
#5B3CB0 #B03C57 #91B03C #3CB095
split-complementary
#5B3CB0 #B0953C #57B03C
monochromatic
#2C1D55 #432C82 #5B3CB0 #7C60C9 #A28ED8

Accessibility & contrast

On white

7.73
#5B3CB0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#5B3CB0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B3CB0
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3CB0#FFFFFF#000000##FFFFFF
##5B3CB01.007.732.727.73
#FFFFFF7.731.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B4
Deuteranopia (green-blind)
#0050AE
Tritanopia (blue-blind)
#3F5871
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5b3cb0;
/* rgb */ color: rgb(91, 60, 176);
/* oklch */ color: oklch(45.9% 0.175 290.1);
Tailwind
colors: {
  custom: {
    50: '#9174c8',
    500: '#5b3cb0',
    950: '#000000',
  },
}
SCSS
$custom: #5b3cb0;
$custom-light: #9174c8;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3cb0",
  "rgb": {
    "r": 91,
    "g": 60,
    "b": 176
  },
  "hsl": {
    "h": 256.034,
    "s": 49.153,
    "l": 46.275
  },
  "oklch": {
    "l": 0.45931,
    "c": 0.17484,
    "h": 290.1
  },
  "luminance": 0.0859
}

Semantic roles & 50–950 ramp

primary
#5B3CB0
secondary
#B2C385
accent
#D94FB4
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5B3CB0

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

Preview Lab → · Contrast checker → · Palette generator →

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