#5B3FAC#5B3FAC

#5B3FAC is a mid, vivid violet. Relative luminance 0.088; OKLCH L 46.1% C 0.166 H 290.2°. Best body text is #FFFFFF at 7.63:1 contrast (WCAG AA passes).

Color values

HEX#5B3FAC
RGBrgb(91, 63, 172)
HSLhsl(255, 46%, 46%)
HSVhsv(255, 63%, 67%)
CMYKcmyk(47.1%, 63.4%, 0%, 32.5%)
CIE-LABlab(35.51, 39.07, -54.42)
CIE-LCHlch(35.51, 67.00, 305.68°)
OKLaboklab(46.07% 0.0572 -0.1557)
OKLCHoklch(46.07% 0.166 290.2)
XYZxyz(13.5362, 8.7572, 39.9988)
Luminance0.0876 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3FAC #90AC3F
analogous
#3F59AC #5B3FAC #913FAC
triadic
#5B3FAC #AC5B3F #3FAC5B
tetradic
#5B3FAC #AC3F59 #90AC3F #3FAC91
square
#5B3FAC #AC3F59 #90AC3F #3FAC91
split-complementary
#5B3FAC #AC913F #59AC3F
monochromatic
#2C1E52 #432F7F #5B3FAC #7C63C6 #A18FD6

Accessibility & contrast

On white

7.63
#5B3FAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#5B3FAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B3FAC
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3FAC#FFFFFF#000000##FFFFFF
##5B3FAC1.007.632.757.63
#FFFFFF7.631.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056AF
Deuteranopia (green-blind)
#0051AA
Tritanopia (blue-blind)
#42596F
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5b3fac;
/* rgb */ color: rgb(91, 63, 172);
/* oklch */ color: oklch(46.1% 0.166 290.2);
Tailwind
colors: {
  custom: {
    50: '#9075c5',
    500: '#5b3fac',
    950: '#000000',
  },
}
SCSS
$custom: #5b3fac;
$custom-light: #9075c5;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3fac",
  "rgb": {
    "r": 91,
    "g": 63,
    "b": 172
  },
  "hsl": {
    "h": 255.413,
    "s": 46.383,
    "l": 46.078
  },
  "oklch": {
    "l": 0.46073,
    "c": 0.16583,
    "h": 290.2
  },
  "luminance": 0.08758
}

Semantic roles & 50–950 ramp

primary
#5B3FAC
secondary
#B2C186
accent
#D652B4
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5B3FAC

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

Preview Lab → · Contrast checker → · Palette generator →

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