#5B3BC4#5B3BC4

#5B3BC4 is a mid, highly saturated violet. Relative luminance 0.093; OKLCH L 47.5% C 0.200 H 286.8°. Best body text is #FFFFFF at 7.32:1 contrast (WCAG AA passes).

Color values

HEX#5B3BC4
RGBrgb(91, 59, 196)
HSLhsl(254, 54%, 50%)
HSVhsv(254, 70%, 77%)
CMYKcmyk(53.6%, 69.9%, 0%, 23.1%)
CIE-LABlab(36.62, 48.32, -66.77)
CIE-LCHlch(36.62, 82.42, 305.89°)
OKLaboklab(47.48% 0.0578 -0.1919)
OKLCHoklch(47.48% 0.2 286.8)
XYZxyz(15.8392, 9.3368, 53.1814)
Luminance0.0934 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3BC4 #A4C43B
analogous
#3B5FC4 #5B3BC4 #A03BC4
triadic
#5B3BC4 #C45B3B #3BC45B
tetradic
#5B3BC4 #C43B5F #A4C43B #3BC4A0
square
#5B3BC4 #C43B5F #A4C43B #3BC4A0
split-complementary
#5B3BC4 #C4A03B #5FC43B
monochromatic
#2F1F66 #452D95 #5B3BC4 #826AD2 #AA99E0

Accessibility & contrast

On white

7.32
#5B3BC4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B3BC4
7.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3BC4#FFFFFF#000000##FFFFFF
##5B3BC41.007.322.877.32
#FFFFFF7.321.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC8
Deuteranopia (green-blind)
#0052C1
Tritanopia (blue-blind)
#305F7B
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5b3bc4;
/* rgb */ color: rgb(91, 59, 196);
/* oklch */ color: oklch(47.5% 0.200 286.8);
Tailwind
colors: {
  custom: {
    50: '#9474d7',
    500: '#5b3bc4',
    950: '#000000',
  },
}
SCSS
$custom: #5b3bc4;
$custom-light: #9474d7;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3bc4",
  "rgb": {
    "r": 91,
    "g": 59,
    "b": 196
  },
  "hsl": {
    "h": 254.015,
    "s": 53.725,
    "l": 50
  },
  "oklch": {
    "l": 0.47476,
    "c": 0.20045,
    "h": 286.8
  },
  "luminance": 0.09338
}

Semantic roles & 50–950 ramp

primary
#5B3BC4
secondary
#BECC8F
accent
#DD4BBB
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5B3BC4

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

Preview Lab → · Contrast checker → · Palette generator →

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