#5F3DB5#5F3DB5

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

Color values

HEX#5F3DB5
RGBrgb(95, 61, 181)
HSLhsl(257, 50%, 47%)
HSVhsv(257, 66%, 71%)
CMYKcmyk(47.5%, 66.3%, 0%, 29%)
CIE-LABlab(36.19, 43.60, -58.65)
CIE-LCHlch(36.19, 73.08, 306.63°)
OKLaboklab(46.88% 0.0639 -0.168)
OKLCHoklch(46.88% 0.18 290.8)
XYZxyz(14.7262, 9.1060, 44.6888)
Luminance0.0911 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3DB5 #93B53D
analogous
#3D57B5 #5F3DB5 #9B3DB5
triadic
#5F3DB5 #B55F3D #3DB55F
tetradic
#5F3DB5 #B53D57 #93B53D #3DB59B
square
#5F3DB5 #B53D57 #93B53D #3DB59B
split-complementary
#5F3DB5 #B59B3D #57B53D
monochromatic
#2F1E59 #472E87 #5F3DB5 #8164CB #A792DA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5F3DB5#FFFFFF#000000##FFFFFF
##5F3DB51.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)
#0057B9
Deuteranopia (green-blind)
#0052B3
Tritanopia (blue-blind)
#445A74
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5f3db5;
/* rgb */ color: rgb(95, 61, 181);
/* oklch */ color: oklch(46.9% 0.180 290.8);
Tailwind
colors: {
  custom: {
    50: '#9475cc',
    500: '#5f3db5',
    950: '#000000',
  },
}
SCSS
$custom: #5f3db5;
$custom-light: #9475cc;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3db5",
  "rgb": {
    "r": 95,
    "g": 61,
    "b": 181
  },
  "hsl": {
    "h": 257,
    "s": 49.587,
    "l": 47.451
  },
  "oklch": {
    "l": 0.46875,
    "c": 0.17972,
    "h": 290.8
  },
  "luminance": 0.09107
}

Semantic roles & 50–950 ramp

primary
#5F3DB5
secondary
#B4C588
accent
#D94FB2
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #5F3DB5

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

Preview Lab → · Contrast checker → · Palette generator →

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