#5F3DB6#5F3DB6

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

Color values

HEX#5F3DB6
RGBrgb(95, 61, 182)
HSLhsl(257, 50%, 48%)
HSVhsv(257, 66%, 71%)
CMYKcmyk(47.8%, 66.5%, 0%, 28.6%)
CIE-LABlab(36.27, 43.89, -59.12)
CIE-LCHlch(36.27, 73.63, 306.59°)
OKLaboklab(46.96% 0.0638 -0.1693)
OKLCHoklch(46.96% 0.181 290.6)
XYZxyz(14.8292, 9.1472, 45.2311)
Luminance0.0915 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3DB6 #94B63D
analogous
#3D57B6 #5F3DB6 #9C3DB6
triadic
#5F3DB6 #B65F3D #3DB65F
tetradic
#5F3DB6 #B63D57 #94B63D #3DB69C
square
#5F3DB6 #B63D57 #94B63D #3DB69C
split-complementary
#5F3DB6 #B69C3D #57B63D
monochromatic
#2F1E5A #472E88 #5F3DB6 #8265CB #A793DB

Accessibility & contrast

On white

7.42
#5F3DB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#5F3DB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F3DB6
7.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3DB6#FFFFFF#000000##FFFFFF
##5F3DB61.007.422.837.42
#FFFFFF7.421.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BA
Deuteranopia (green-blind)
#0053B4
Tritanopia (blue-blind)
#435B74
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5f3db6;
/* rgb */ color: rgb(95, 61, 182);
/* oklch */ color: oklch(47.0% 0.181 290.6);
Tailwind
colors: {
  custom: {
    50: '#9475cd',
    500: '#5f3db6',
    950: '#000000',
  },
}
SCSS
$custom: #5f3db6;
$custom-light: #9475cd;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3db6",
  "rgb": {
    "r": 95,
    "g": 61,
    "b": 182
  },
  "hsl": {
    "h": 256.86,
    "s": 49.794,
    "l": 47.647
  },
  "oklch": {
    "l": 0.46956,
    "c": 0.18094,
    "h": 290.6
  },
  "luminance": 0.09148
}

Semantic roles & 50–950 ramp

primary
#5F3DB6
secondary
#B5C689
accent
#D94EB2
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #5F3DB6

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

Preview Lab → · Contrast checker → · Palette generator →

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