#5B3CB8#5B3CB8

#5B3CB8 is a mid, vivid violet. Relative luminance 0.089; OKLCH L 46.6% C 0.185 H 288.6°. Best body text is #FFFFFF at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#5B3CB8
RGBrgb(91, 60, 184)
HSLhsl(255, 51%, 48%)
HSVhsv(255, 67%, 72%)
CMYKcmyk(50.5%, 67.4%, 0%, 27.8%)
CIE-LABlab(35.82, 44.28, -61.04)
CIE-LCHlch(35.82, 75.41, 305.96°)
OKLaboklab(46.59% 0.0589 -0.1751)
OKLCHoklch(46.59% 0.185 288.6)
XYZxyz(14.5795, 8.9159, 46.2908)
Luminance0.0892 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3CB8 #99B83C
analogous
#3C5BB8 #5B3CB8 #993CB8
triadic
#5B3CB8 #B85B3C #3CB85B
tetradic
#5B3CB8 #B83C5B #99B83C #3CB899
square
#5B3CB8 #B83C5B #99B83C #3CB899
split-complementary
#5B3CB8 #B8993C #5BB83C
monochromatic
#2D1E5C #442D8A #5B3CB8 #7F65CD #A593DC

Accessibility & contrast

On white

7.54
#5B3CB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#5B3CB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B3CB8
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3CB8#FFFFFF#000000##FFFFFF
##5B3CB81.007.542.787.54
#FFFFFF7.541.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BC
Deuteranopia (green-blind)
#0051B6
Tritanopia (blue-blind)
#3A5B75
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5b3cb8;
/* rgb */ color: rgb(91, 60, 184);
/* oklch */ color: oklch(46.6% 0.185 288.6);
Tailwind
colors: {
  custom: {
    50: '#9274ce',
    500: '#5b3cb8',
    950: '#000000',
  },
}
SCSS
$custom: #5b3cb8;
$custom-light: #9274ce;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3cb8",
  "rgb": {
    "r": 91,
    "g": 60,
    "b": 184
  },
  "hsl": {
    "h": 255,
    "s": 50.82,
    "l": 47.843
  },
  "oklch": {
    "l": 0.46591,
    "c": 0.18474,
    "h": 288.6
  },
  "luminance": 0.08917
}

Semantic roles & 50–950 ramp

primary
#5B3CB8
secondary
#B7C789
accent
#DA4DB7
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #5B3CB8

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

Preview Lab → · Contrast checker → · Palette generator →

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