#5B3DCD#5B3DCD

#5B3DCD is a mid, highly saturated violet. Relative luminance 0.100; OKLCH L 48.5% C 0.209 H 285.1°. Best body text is #FFFFFF at 7.01:1 contrast (WCAG AA passes).

Color values

HEX#5B3DCD
RGBrgb(91, 61, 205)
HSLhsl(253, 59%, 52%)
HSVhsv(253, 70%, 80%)
CMYKcmyk(55.6%, 70.2%, 0%, 19.6%)
CIE-LABlab(37.79, 49.87, -70.11)
CIE-LCHlch(37.79, 86.04, 305.43°)
OKLaboklab(48.54% 0.0545 -0.2017)
OKLCHoklch(48.54% 0.209 285.1)
XYZxyz(16.9992, 9.9684, 58.7741)
Luminance0.0997 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3DCD #AFCD3D
analogous
#3D67CD #5B3DCD #A33DCD
triadic
#5B3DCD #CD5B3D #3DCD5B
tetradic
#5B3DCD #CD3D67 #AFCD3D #3DCDA3
square
#5B3DCD #CD3D67 #AFCD3D #3DCDA3
split-complementary
#5B3DCD #CDA33D #67CD3D
monochromatic
#2F1D72 #432AA3 #5B3DCD #846EDA #AD9EE6

Accessibility & contrast

On white

7.01
#5B3DCD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#5B3DCD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B3DCD
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3DCD#FFFFFF#000000##FFFFFF
##5B3DCD1.007.012.997.01
#FFFFFF7.011.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DD1
Deuteranopia (green-blind)
#0054CA
Tritanopia (blue-blind)
#256381
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5b3dcd;
/* rgb */ color: rgb(91, 61, 205);
/* oklch */ color: oklch(48.5% 0.209 285.1);
Tailwind
colors: {
  custom: {
    50: '#9575dd',
    500: '#5b3dcd',
    950: '#000000',
  },
}
SCSS
$custom: #5b3dcd;
$custom-light: #9575dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3dcd",
  "rgb": {
    "r": 91,
    "g": 61,
    "b": 205
  },
  "hsl": {
    "h": 252.5,
    "s": 59.016,
    "l": 52.157
  },
  "oklch": {
    "l": 0.48542,
    "c": 0.20894,
    "h": 285.1
  },
  "luminance": 0.09969
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5B3DCD

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

Preview Lab → · Contrast checker → · Palette generator →

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