#5B3CCB#5B3CCB

#5B3CCB is a mid, highly saturated violet. Relative luminance 0.098; OKLCH L 48.2% C 0.208 H 285.5°. Best body text is #FFFFFF at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#5B3CCB
RGBrgb(91, 60, 203)
HSLhsl(253, 58%, 52%)
HSVhsv(253, 70%, 80%)
CMYKcmyk(55.2%, 70.4%, 0%, 20.4%)
CIE-LABlab(37.42, 49.82, -69.55)
CIE-LCHlch(37.42, 85.55, 305.62°)
OKLaboklab(48.23% 0.0557 -0.2001)
OKLCHoklch(48.23% 0.208 285.5)
XYZxyz(16.7065, 9.7667, 57.4932)
Luminance0.0977 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3CCB #ACCB3C
analogous
#3C65CB #5B3CCB #A33CCB
triadic
#5B3CCB #CB5B3C #3CCB5B
tetradic
#5B3CCB #CB3C65 #ACCB3C #3CCBA3
square
#5B3CCB #CB3C65 #ACCB3C #3CCBA3
split-complementary
#5B3CCB #CBA33C #65CB3C
monochromatic
#2F1E6F #442A9F #5B3CCB #846CD8 #AC9DE5

Accessibility & contrast

On white

7.11
#5B3CCB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#5B3CCB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B3CCB
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3CCB#FFFFFF#000000##FFFFFF
##5B3CCB1.007.112.957.11
#FFFFFF7.111.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CCF
Deuteranopia (green-blind)
#0054C8
Tritanopia (blue-blind)
#28627F
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5b3ccb;
/* rgb */ color: rgb(91, 60, 203);
/* oklch */ color: oklch(48.2% 0.208 285.5);
Tailwind
colors: {
  custom: {
    50: '#9474dc',
    500: '#5b3ccb',
    950: '#000000',
  },
}
SCSS
$custom: #5b3ccb;
$custom-light: #9474dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3ccb",
  "rgb": {
    "r": 91,
    "g": 60,
    "b": 203
  },
  "hsl": {
    "h": 253.007,
    "s": 57.895,
    "l": 51.569
  },
  "oklch": {
    "l": 0.48229,
    "c": 0.20767,
    "h": 285.5
  },
  "luminance": 0.09768
}

Semantic roles & 50–950 ramp

primary
#5B3CCB
secondary
#C3D192
accent
#E147C0
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5B3CCB

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

Preview Lab → · Contrast checker → · Palette generator →

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