#5B3FB3#5B3FB3

#5B3FB3 is a mid, vivid violet. Relative luminance 0.090; OKLCH L 46.6% C 0.175 H 288.9°. Best body text is #FFFFFF at 7.48:1 contrast (WCAG AA passes).

Color values

HEX#5B3FB3
RGBrgb(91, 63, 179)
HSLhsl(254, 48%, 47%)
HSVhsv(254, 65%, 70%)
CMYKcmyk(49.2%, 64.8%, 0%, 29.8%)
CIE-LABlab(36.05, 41.13, -57.71)
CIE-LCHlch(36.05, 70.87, 305.47°)
OKLaboklab(46.63% 0.0565 -0.1653)
OKLCHoklch(46.63% 0.175 288.9)
XYZxyz(14.2262, 9.0332, 43.6331)
Luminance0.0903 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3FB3 #97B33F
analogous
#3F5DB3 #5B3FB3 #953FB3
triadic
#5B3FB3 #B35B3F #3FB35B
tetradic
#5B3FB3 #B33F5D #97B33F #3FB395
square
#5B3FB3 #B33F5D #97B33F #3FB395
split-complementary
#5B3FB3 #B3953F #5DB33F
monochromatic
#2D1F58 #442F86 #5B3FB3 #7E66C9 #A493D9

Accessibility & contrast

On white

7.48
#5B3FB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#5B3FB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B3FB3
7.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3FB3#FFFFFF#000000##FFFFFF
##5B3FB31.007.482.817.48
#FFFFFF7.481.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B7
Deuteranopia (green-blind)
#0052B1
Tritanopia (blue-blind)
#3D5B73
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5b3fb3;
/* rgb */ color: rgb(91, 63, 179);
/* oklch */ color: oklch(46.6% 0.175 288.9);
Tailwind
colors: {
  custom: {
    50: '#9176cb',
    500: '#5b3fb3',
    950: '#000000',
  },
}
SCSS
$custom: #5b3fb3;
$custom-light: #9176cb;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3fb3",
  "rgb": {
    "r": 91,
    "g": 63,
    "b": 179
  },
  "hsl": {
    "h": 254.483,
    "s": 47.934,
    "l": 47.451
  },
  "oklch": {
    "l": 0.4663,
    "c": 0.17472,
    "h": 288.9
  },
  "luminance": 0.09034
}

Semantic roles & 50–950 ramp

primary
#5B3FB3
secondary
#B6C489
accent
#D850B7
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5B3FB3

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

Preview Lab → · Contrast checker → · Palette generator →

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