#5B3FD4#5B3FD4

#5B3FD4 is a mid, highly saturated violet. Relative luminance 0.105; OKLCH L 49.4% C 0.215 H 283.9°. Best body text is #FFFFFF at 6.76:1 contrast (WCAG AA passes).

Color values

HEX#5B3FD4
RGBrgb(91, 63, 212)
HSLhsl(251, 63%, 54%)
HSVhsv(251, 70%, 83%)
CMYKcmyk(57.1%, 70.3%, 0%, 16.9%)
CIE-LABlab(38.78, 50.86, -72.53)
CIE-LCHlch(38.78, 88.58, 305.04°)
OKLaboklab(49.44% 0.0515 -0.2088)
OKLCHoklch(49.44% 0.215 283.9)
XYZxyz(17.9719, 10.5315, 63.3604)
Luminance0.1053 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3FD4 #B8D43F
analogous
#3F6ED4 #5B3FD4 #A63FD4
triadic
#5B3FD4 #D45B3F #3FD45B
tetradic
#5B3FD4 #D43F6E #B8D43F #3FD4A6
square
#5B3FD4 #D43F6E #B8D43F #3FD4A6
split-complementary
#5B3FD4 #D4A63F #6ED43F
monochromatic
#2E1C7D #4127AF #5B3FD4 #8671DF #B0A3EA

Accessibility & contrast

On white

6.76
#5B3FD4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#5B3FD4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B3FD4
6.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3FD4#FFFFFF#000000##FFFFFF
##5B3FD41.006.763.116.76
#FFFFFF6.761.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D8
Deuteranopia (green-blind)
#0056D1
Tritanopia (blue-blind)
#196785
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5b3fd4;
/* rgb */ color: rgb(91, 63, 212);
/* oklch */ color: oklch(49.4% 0.215 283.9);
Tailwind
colors: {
  custom: {
    50: '#9677e2',
    500: '#5b3fd4',
    950: '#000000',
  },
}
SCSS
$custom: #5b3fd4;
$custom-light: #9677e2;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3fd4",
  "rgb": {
    "r": 91,
    "g": 63,
    "b": 212
  },
  "hsl": {
    "h": 251.275,
    "s": 63.404,
    "l": 53.922
  },
  "oklch": {
    "l": 0.49438,
    "c": 0.21508,
    "h": 283.9
  },
  "luminance": 0.10533
}

Semantic roles & 50–950 ramp

primary
#5B3FD4
secondary
#CBD798
accent
#E641C7
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0F0916
muted
#7E7B84

Preview Lab

Preview with #5B3FD4

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

Preview Lab → · Contrast checker → · Palette generator →

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