#5F3BB9#5F3BB9

#5F3BB9 is a mid, vivid violet. Relative luminance 0.091; OKLCH L 46.9% C 0.187 H 290.4°. Best body text is #FFFFFF at 7.47:1 contrast (WCAG AA passes).

Color values

HEX#5F3BB9
RGBrgb(95, 59, 185)
HSLhsl(257, 52%, 48%)
HSVhsv(257, 68%, 73%)
CMYKcmyk(48.6%, 68.1%, 0%, 27.5%)
CIE-LABlab(36.11, 45.84, -61.15)
CIE-LCHlch(36.11, 76.42, 306.85°)
OKLaboklab(46.92% 0.0654 -0.1753)
OKLCHoklch(46.92% 0.187 290.4)
XYZxyz(15.0377, 9.0630, 46.8465)
Luminance0.0906 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3BB9 #95B93B
analogous
#3B56B9 #5F3BB9 #9E3BB9
triadic
#5F3BB9 #B95F3B #3BB95F
tetradic
#5F3BB9 #B93B56 #95B93B #3BB99E
square
#5F3BB9 #B93B56 #95B93B #3BB99E
split-complementary
#5F3BB9 #B99E3B #56B93B
monochromatic
#2F1D5C #472C8B #5F3BB9 #8264CD #A792DC

Accessibility & contrast

On white

7.47
#5F3BB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F3BB9
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3BB9#FFFFFF#000000##FFFFFF
##5F3BB91.007.472.817.47
#FFFFFF7.471.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BD
Deuteranopia (green-blind)
#0052B6
Tritanopia (blue-blind)
#415A75
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5f3bb9;
/* rgb */ color: rgb(95, 59, 185);
/* oklch */ color: oklch(46.9% 0.187 290.4);
Tailwind
colors: {
  custom: {
    50: '#9473cf',
    500: '#5f3bb9',
    950: '#000000',
  },
}
SCSS
$custom: #5f3bb9;
$custom-light: #9473cf;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3bb9",
  "rgb": {
    "r": 95,
    "g": 59,
    "b": 185
  },
  "hsl": {
    "h": 257.143,
    "s": 51.639,
    "l": 47.843
  },
  "oklch": {
    "l": 0.46915,
    "c": 0.18708,
    "h": 290.4
  },
  "luminance": 0.09064
}

Semantic roles & 50–950 ramp

primary
#5F3BB9
secondary
#B5C788
accent
#DB4DB2
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #5F3BB9

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

Preview Lab → · Contrast checker → · Palette generator →

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