#5B3DCC#5B3DCC

#5B3DCC is a mid, highly saturated violet. Relative luminance 0.099; OKLCH L 48.5% C 0.208 H 285.3°. Best body text is #FFFFFF at 7.04:1 contrast (WCAG AA passes).

Color values

HEX#5B3DCC
RGBrgb(91, 61, 204)
HSLhsl(253, 58%, 52%)
HSVhsv(253, 70%, 80%)
CMYKcmyk(55.4%, 70.1%, 0%, 20%)
CIE-LABlab(37.70, 49.58, -69.67)
CIE-LCHlch(37.70, 85.51, 305.44°)
OKLaboklab(48.45% 0.0547 -0.2004)
OKLCHoklch(48.45% 0.208 285.3)
XYZxyz(16.8789, 9.9203, 58.1404)
Luminance0.0992 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3DCC #AECC3D
analogous
#3D67CC #5B3DCC #A23DCC
triadic
#5B3DCC #CC5B3D #3DCC5B
tetradic
#5B3DCC #CC3D67 #AECC3D #3DCCA2
square
#5B3DCC #CC3D67 #AECC3D #3DCCA2
split-complementary
#5B3DCC #CCA23D #67CC3D
monochromatic
#2F1E71 #432AA1 #5B3DCC #846DD9 #AD9EE5

Accessibility & contrast

On white

7.04
#5B3DCC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#5B3DCC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B3DCC
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3DCC#FFFFFF#000000##FFFFFF
##5B3DCC1.007.042.987.04
#FFFFFF7.041.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DD0
Deuteranopia (green-blind)
#0054C9
Tritanopia (blue-blind)
#266380
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5b3dcc;
/* rgb */ color: rgb(91, 61, 204);
/* oklch */ color: oklch(48.5% 0.208 285.3);
Tailwind
colors: {
  custom: {
    50: '#9575dd',
    500: '#5b3dcc',
    950: '#000000',
  },
}
SCSS
$custom: #5b3dcc;
$custom-light: #9575dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3dcc",
  "rgb": {
    "r": 91,
    "g": 61,
    "b": 204
  },
  "hsl": {
    "h": 252.587,
    "s": 58.367,
    "l": 51.961
  },
  "oklch": {
    "l": 0.48454,
    "c": 0.20776,
    "h": 285.3
  },
  "luminance": 0.09921
}

Semantic roles & 50–950 ramp

primary
#5B3DCC
secondary
#C5D293
accent
#E246C1
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5B3DCC

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

Preview Lab → · Contrast checker → · Palette generator →

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