#5B3ECF#5B3ECF

#5B3ECF is a mid, highly saturated violet. Relative luminance 0.102; OKLCH L 48.9% C 0.210 H 284.7°. Best body text is #FFFFFF at 6.92:1 contrast (WCAG AA passes).

Color values

HEX#5B3ECF
RGBrgb(91, 62, 207)
HSLhsl(252, 60%, 53%)
HSVhsv(252, 70%, 81%)
CMYKcmyk(56%, 70%, 0%, 18.8%)
CIE-LABlab(38.15, 49.93, -70.67)
CIE-LCHlch(38.15, 86.53, 305.24°)
OKLaboklab(48.86% 0.0533 -0.2034)
OKLCHoklch(48.86% 0.21 284.7)
XYZxyz(17.2961, 10.1734, 60.0716)
Luminance0.1017 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3ECF #B2CF3E
analogous
#3E69CF #5B3ECF #A33ECF
triadic
#5B3ECF #CF5B3E #3ECF5B
tetradic
#5B3ECF #CF3E69 #B2CF3E #3ECFA3
square
#5B3ECF #CF3E69 #B2CF3E #3ECFA3
split-complementary
#5B3ECF #CFA33E #69CF3E
monochromatic
#2F1D75 #4229A6 #5B3ECF #856FDB #AEA0E7

Accessibility & contrast

On white

6.92
#5B3ECF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#5B3ECF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B3ECF
6.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3ECF#FFFFFF#000000##FFFFFF
##5B3ECF1.006.923.036.92
#FFFFFF6.921.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ED3
Deuteranopia (green-blind)
#0055CC
Tritanopia (blue-blind)
#226482
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5b3ecf;
/* rgb */ color: rgb(91, 62, 207);
/* oklch */ color: oklch(48.9% 0.210 284.7);
Tailwind
colors: {
  custom: {
    50: '#9576df',
    500: '#5b3ecf',
    950: '#000000',
  },
}
SCSS
$custom: #5b3ecf;
$custom-light: #9576df;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3ecf",
  "rgb": {
    "r": 91,
    "g": 62,
    "b": 207
  },
  "hsl": {
    "h": 252,
    "s": 60.166,
    "l": 52.745
  },
  "oklch": {
    "l": 0.48857,
    "c": 0.21022,
    "h": 284.7
  },
  "luminance": 0.10174
}

Semantic roles & 50–950 ramp

primary
#5B3ECF
secondary
#C7D495
accent
#E344C4
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5B3ECF

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

Preview Lab → · Contrast checker → · Palette generator →

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