#5F3DB3#5F3DB3

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

Color values

HEX#5F3DB3
RGBrgb(95, 61, 179)
HSLhsl(257, 49%, 47%)
HSVhsv(257, 66%, 70%)
CMYKcmyk(46.9%, 65.9%, 0%, 29.8%)
CIE-LABlab(36.03, 43.03, -57.72)
CIE-LCHlch(36.03, 72.00, 306.70°)
OKLaboklab(46.71% 0.0642 -0.1652)
OKLCHoklch(46.71% 0.177 291.2)
XYZxyz(14.5225, 9.0245, 43.6158)
Luminance0.0902 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3DB3 #91B33D
analogous
#3D56B3 #5F3DB3 #9A3DB3
triadic
#5F3DB3 #B35F3D #3DB35F
tetradic
#5F3DB3 #B33D56 #91B33D #3DB39A
square
#5F3DB3 #B33D56 #91B33D #3DB39A
split-complementary
#5F3DB3 #B39A3D #56B33D
monochromatic
#2F1E58 #472D85 #5F3DB3 #8163CA #A691D9

Accessibility & contrast

On white

7.49
#5F3DB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F3DB3
7.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3DB3#FFFFFF#000000##FFFFFF
##5F3DB31.007.492.817.49
#FFFFFF7.491.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.491.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f3db3;
/* rgb */ color: rgb(95, 61, 179);
/* oklch */ color: oklch(46.7% 0.177 291.2);
Tailwind
colors: {
  custom: {
    50: '#9375cb',
    500: '#5f3db3',
    950: '#000000',
  },
}
SCSS
$custom: #5f3db3;
$custom-light: #9375cb;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3db3",
  "rgb": {
    "r": 95,
    "g": 61,
    "b": 179
  },
  "hsl": {
    "h": 257.288,
    "s": 49.167,
    "l": 47.059
  },
  "oklch": {
    "l": 0.46713,
    "c": 0.17725,
    "h": 291.2
  },
  "luminance": 0.09025
}

Semantic roles & 50–950 ramp

primary
#5F3DB3
secondary
#B3C587
accent
#D94FB1
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #5F3DB3

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

Preview Lab → · Contrast checker → · Palette generator →

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