#5B3CCC#5B3CCC

#5B3CCC is a mid, highly saturated violet. Relative luminance 0.098; OKLCH L 48.3% C 0.209 H 285.4°. Best body text is #FFFFFF at 7.09:1 contrast (WCAG AA passes).

Color values

HEX#5B3CCC
RGBrgb(91, 60, 204)
HSLhsl(253, 59%, 52%)
HSVhsv(253, 71%, 80%)
CMYKcmyk(55.4%, 70.6%, 0%, 20%)
CIE-LABlab(37.51, 50.11, -69.99)
CIE-LCHlch(37.51, 86.08, 305.60°)
OKLaboklab(48.32% 0.0555 -0.2013)
OKLCHoklch(48.32% 0.209 285.4)
XYZxyz(16.8260, 9.8145, 58.1228)
Luminance0.0982 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3CCC #ADCC3C
analogous
#3C65CC #5B3CCC #A33CCC
triadic
#5B3CCC #CC5B3C #3CCC5B
tetradic
#5B3CCC #CC3C65 #ADCC3C #3CCCA3
square
#5B3CCC #CC3C65 #ADCC3C #3CCCA3
split-complementary
#5B3CCC #CCA33C #65CC3C
monochromatic
#2F1D70 #442AA1 #5B3CCC #846DD9 #AD9DE5

Accessibility & contrast

On white

7.09
#5B3CCC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#5B3CCC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B3CCC
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3CCC#FFFFFF#000000##FFFFFF
##5B3CCC1.007.092.967.09
#FFFFFF7.091.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CD0
Deuteranopia (green-blind)
#0054C9
Tritanopia (blue-blind)
#276280
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5b3ccc;
/* rgb */ color: rgb(91, 60, 204);
/* oklch */ color: oklch(48.3% 0.209 285.4);
Tailwind
colors: {
  custom: {
    50: '#9575dd',
    500: '#5b3ccc',
    950: '#000000',
  },
}
SCSS
$custom: #5b3ccc;
$custom-light: #9575dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3ccc",
  "rgb": {
    "r": 91,
    "g": 60,
    "b": 204
  },
  "hsl": {
    "h": 252.917,
    "s": 58.537,
    "l": 51.765
  },
  "oklch": {
    "l": 0.48317,
    "c": 0.20885,
    "h": 285.4
  },
  "luminance": 0.09815
}

Semantic roles & 50–950 ramp

primary
#5B3CCC
secondary
#C4D192
accent
#E246C0
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5B3CCC

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

Preview Lab → · Contrast checker → · Palette generator →

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