#5F3BB7#5F3BB7

#5F3BB7 is a mid, vivid violet. Relative luminance 0.090; OKLCH L 46.7% C 0.185 H 290.8°. Best body text is #FFFFFF at 7.51:1 contrast (WCAG AA passes).

Color values

HEX#5F3BB7
RGBrgb(95, 59, 183)
HSLhsl(257, 51%, 47%)
HSVhsv(257, 68%, 72%)
CMYKcmyk(48.1%, 67.8%, 0%, 28.2%)
CIE-LABlab(35.94, 45.27, -60.23)
CIE-LCHlch(35.94, 75.35, 306.93°)
OKLaboklab(46.75% 0.0657 -0.1726)
OKLCHoklch(46.75% 0.185 290.8)
XYZxyz(14.8281, 8.9792, 45.7424)
Luminance0.0898 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3BB7 #93B73B
analogous
#3B55B7 #5F3BB7 #9D3BB7
triadic
#5F3BB7 #B75F3B #3BB75F
tetradic
#5F3BB7 #B73B55 #93B73B #3BB79D
square
#5F3BB7 #B73B55 #93B73B #3BB79D
split-complementary
#5F3BB7 #B79D3B #55B73B
monochromatic
#2F1D5A #472C89 #5F3BB7 #8163CD #A791DC

Accessibility & contrast

On white

7.51
#5F3BB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#5F3BB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F3BB7
7.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3BB7#FFFFFF#000000##FFFFFF
##5F3BB71.007.512.807.51
#FFFFFF7.511.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BB
Deuteranopia (green-blind)
#0052B5
Tritanopia (blue-blind)
#435A74
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5f3bb7;
/* rgb */ color: rgb(95, 59, 183);
/* oklch */ color: oklch(46.7% 0.185 290.8);
Tailwind
colors: {
  custom: {
    50: '#9473ce',
    500: '#5f3bb7',
    950: '#000000',
  },
}
SCSS
$custom: #5f3bb7;
$custom-light: #9473ce;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3bb7",
  "rgb": {
    "r": 95,
    "g": 59,
    "b": 183
  },
  "hsl": {
    "h": 257.419,
    "s": 51.24,
    "l": 47.451
  },
  "oklch": {
    "l": 0.46749,
    "c": 0.18466,
    "h": 290.8
  },
  "luminance": 0.0898
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5F3BB7

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

Preview Lab → · Contrast checker → · Palette generator →

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