#5B3DCF#5B3DCF

#5B3DCF is a mid, highly saturated violet. Relative luminance 0.101; OKLCH L 48.7% C 0.211 H 284.8°. Best body text is #FFFFFF at 6.97:1 contrast (WCAG AA passes).

Color values

HEX#5B3DCF
RGBrgb(91, 61, 207)
HSLhsl(252, 60%, 53%)
HSVhsv(252, 71%, 81%)
CMYKcmyk(56%, 70.5%, 0%, 18.8%)
CIE-LABlab(37.96, 50.46, -70.98)
CIE-LCHlch(37.96, 87.09, 305.41°)
OKLaboklab(48.72% 0.0541 -0.2043)
OKLCHoklch(48.72% 0.211 284.8)
XYZxyz(17.2422, 10.0656, 60.0537)
Luminance0.1007 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3DCF #B1CF3D
analogous
#3D68CF #5B3DCF #A43DCF
triadic
#5B3DCF #CF5B3D #3DCF5B
tetradic
#5B3DCF #CF3D68 #B1CF3D #3DCFA4
square
#5B3DCF #CF3D68 #B1CF3D #3DCFA4
split-complementary
#5B3DCF #CFA43D #68CF3D
monochromatic
#2F1D75 #4329A6 #5B3DCF #846EDB #AE9FE7

Accessibility & contrast

On white

6.97
#5B3DCF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#5B3DCF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B3DCF
6.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3DCF#FFFFFF#000000##FFFFFF
##5B3DCF1.006.973.016.97
#FFFFFF6.971.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DD3
Deuteranopia (green-blind)
#0055CC
Tritanopia (blue-blind)
#226482
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5b3dcf;
/* rgb */ color: rgb(91, 61, 207);
/* oklch */ color: oklch(48.7% 0.211 284.8);
Tailwind
colors: {
  custom: {
    50: '#9575df',
    500: '#5b3dcf',
    950: '#000000',
  },
}
SCSS
$custom: #5b3dcf;
$custom-light: #9575df;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3dcf",
  "rgb": {
    "r": 91,
    "g": 61,
    "b": 207
  },
  "hsl": {
    "h": 252.329,
    "s": 60.331,
    "l": 52.549
  },
  "oklch": {
    "l": 0.4872,
    "c": 0.21132,
    "h": 284.8
  },
  "luminance": 0.10067
}

Semantic roles & 50–950 ramp

primary
#5B3DCF
secondary
#C7D494
accent
#E344C3
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5B3DCF

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

Preview Lab → · Contrast checker → · Palette generator →

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