#5B3FC5#5B3FC5

#5B3FC5 is a mid, vivid violet. Relative luminance 0.098; OKLCH L 48.1% C 0.197 H 285.9°. Best body text is #FFFFFF at 7.09:1 contrast (WCAG AA passes).

Color values

HEX#5B3FC5
RGBrgb(91, 63, 197)
HSLhsl(253, 54%, 51%)
HSVhsv(253, 68%, 77%)
CMYKcmyk(53.8%, 68%, 0%, 22.7%)
CIE-LABlab(37.50, 46.44, -65.93)
CIE-LCHlch(37.50, 80.64, 305.16°)
OKLaboklab(48.13% 0.0541 -0.1895)
OKLCHoklch(48.13% 0.197 285.9)
XYZxyz(16.1669, 9.8095, 53.8540)
Luminance0.0981 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3FC5 #A9C53F
analogous
#3F66C5 #5B3FC5 #9E3FC5
triadic
#5B3FC5 #C55B3F #3FC55B
tetradic
#5B3FC5 #C53F66 #A9C53F #3FC59E
square
#5B3FC5 #C53F66 #A9C53F #3FC59E
split-complementary
#5B3FC5 #C59E3F #66C53F
monochromatic
#2F206A #442E99 #5B3FC5 #836ED3 #AB9DE1

Accessibility & contrast

On white

7.09
#5B3FC5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#5B3FC5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B3FC5
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3FC5#FFFFFF#000000##FFFFFF
##5B3FC51.007.092.967.09
#FFFFFF7.091.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC9
Deuteranopia (green-blind)
#0054C2
Tritanopia (blue-blind)
#2E617D
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5b3fc5;
/* rgb */ color: rgb(91, 63, 197);
/* oklch */ color: oklch(48.1% 0.197 285.9);
Tailwind
colors: {
  custom: {
    50: '#9376d8',
    500: '#5b3fc5',
    950: '#000000',
  },
}
SCSS
$custom: #5b3fc5;
$custom-light: #9376d8;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3fc5",
  "rgb": {
    "r": 91,
    "g": 63,
    "b": 197
  },
  "hsl": {
    "h": 252.537,
    "s": 53.6,
    "l": 50.98
  },
  "oklch": {
    "l": 0.48127,
    "c": 0.19704,
    "h": 285.9
  },
  "luminance": 0.0981
}

Semantic roles & 50–950 ramp

primary
#5B3FC5
secondary
#C1CE92
accent
#DD4BBE
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5B3FC5

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

Preview Lab → · Contrast checker → · Palette generator →

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