#5F3BBA#5F3BBA

#5F3BBA is a mid, vivid violet. Relative luminance 0.091; OKLCH L 47.0% C 0.188 H 290.3°. Best body text is #FFFFFF at 7.44:1 contrast (WCAG AA passes).

Color values

HEX#5F3BBA
RGBrgb(95, 59, 186)
HSLhsl(257, 52%, 48%)
HSVhsv(257, 68%, 73%)
CMYKcmyk(48.9%, 68.3%, 0%, 27.1%)
CIE-LABlab(36.19, 46.12, -61.61)
CIE-LCHlch(36.19, 76.96, 306.82°)
OKLaboklab(47% 0.0652 -0.1766)
OKLCHoklch(47% 0.188 290.3)
XYZxyz(15.1437, 9.1054, 47.4044)
Luminance0.0911 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3BBA #96BA3B
analogous
#3B56BA #5F3BBA #9E3BBA
triadic
#5F3BBA #BA5F3B #3BBA5F
tetradic
#5F3BBA #BA3B56 #96BA3B #3BBA9E
square
#5F3BBA #BA3B56 #96BA3B #3BBA9E
split-complementary
#5F3BBA #BA9E3B #56BA3B
monochromatic
#301E5D #472C8C #5F3BBA #8264CE #A893DD

Accessibility & contrast

On white

7.44
#5F3BBA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#5F3BBA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F3BBA
7.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3BBA#FFFFFF#000000##FFFFFF
##5F3BBA1.007.442.827.44
#FFFFFF7.441.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BE
Deuteranopia (green-blind)
#0052B7
Tritanopia (blue-blind)
#415B76
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5f3bba;
/* rgb */ color: rgb(95, 59, 186);
/* oklch */ color: oklch(47.0% 0.188 290.3);
Tailwind
colors: {
  custom: {
    50: '#9474d0',
    500: '#5f3bba',
    950: '#000000',
  },
}
SCSS
$custom: #5f3bba;
$custom-light: #9474d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3bba",
  "rgb": {
    "r": 95,
    "g": 59,
    "b": 186
  },
  "hsl": {
    "h": 257.008,
    "s": 51.837,
    "l": 48.039
  },
  "oklch": {
    "l": 0.46999,
    "c": 0.18828,
    "h": 290.3
  },
  "luminance": 0.09106
}

Semantic roles & 50–950 ramp

primary
#5F3BBA
secondary
#B6C889
accent
#DB4DB3
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #5F3BBA

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

Preview Lab → · Contrast checker → · Palette generator →

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