#5B3DC0#5B3DC0

#5B3DC0 is a mid, vivid violet. Relative luminance 0.094; OKLCH L 47.4% C 0.193 H 287.1°. Best body text is #FFFFFF at 7.31:1 contrast (WCAG AA passes).

Color values

HEX#5B3DC0
RGBrgb(91, 61, 192)
HSLhsl(254, 52%, 50%)
HSVhsv(254, 68%, 75%)
CMYKcmyk(52.6%, 68.2%, 0%, 24.7%)
CIE-LABlab(36.68, 46.07, -64.34)
CIE-LCHlch(36.68, 79.13, 305.60°)
OKLaboklab(47.41% 0.0567 -0.1848)
OKLCHoklch(47.41% 0.193 287.1)
XYZxyz(15.4947, 9.3666, 50.8504)
Luminance0.0937 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3DC0 #A2C03D
analogous
#3D61C0 #5B3DC0 #9C3DC0
triadic
#5B3DC0 #C05B3D #3DC05B
tetradic
#5B3DC0 #C03D61 #A2C03D #3DC09C
square
#5B3DC0 #C03D61 #A2C03D #3DC09C
split-complementary
#5B3DC0 #C09C3D #61C03D
monochromatic
#2F1F63 #452E92 #5B3DC0 #826AD0 #A999DF

Accessibility & contrast

On white

7.31
#5B3DC0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#5B3DC0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B3DC0
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3DC0#FFFFFF#000000##FFFFFF
##5B3DC01.007.312.877.31
#FFFFFF7.311.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C4
Deuteranopia (green-blind)
#0053BD
Tritanopia (blue-blind)
#335E7A
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5b3dc0;
/* rgb */ color: rgb(91, 61, 192);
/* oklch */ color: oklch(47.4% 0.193 287.1);
Tailwind
colors: {
  custom: {
    50: '#9375d4',
    500: '#5b3dc0',
    950: '#000000',
  },
}
SCSS
$custom: #5b3dc0;
$custom-light: #9375d4;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3dc0",
  "rgb": {
    "r": 91,
    "g": 61,
    "b": 192
  },
  "hsl": {
    "h": 253.74,
    "s": 51.779,
    "l": 49.608
  },
  "oklch": {
    "l": 0.47412,
    "c": 0.19331,
    "h": 287.1
  },
  "luminance": 0.09367
}

Semantic roles & 50–950 ramp

primary
#5B3DC0
secondary
#BDCA8E
accent
#DB4DBB
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5B3DC0

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

Preview Lab → · Contrast checker → · Palette generator →

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