#5F3DB0#5F3DB0

#5F3DB0 is a mid, vivid violet. Relative luminance 0.089; OKLCH L 46.5% C 0.174 H 291.8°. Best body text is #FFFFFF at 7.55:1 contrast (WCAG AA passes).

Color values

HEX#5F3DB0
RGBrgb(95, 61, 176)
HSLhsl(258, 49%, 46%)
HSVhsv(258, 65%, 69%)
CMYKcmyk(46%, 65.3%, 0%, 31%)
CIE-LABlab(35.80, 42.17, -56.32)
CIE-LCHlch(35.80, 70.36, 306.83°)
OKLaboklab(46.47% 0.0645 -0.1611)
OKLCHoklch(46.47% 0.174 291.8)
XYZxyz(14.2224, 8.9045, 42.0353)
Luminance0.0891 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3DB0 #8EB03D
analogous
#3D55B0 #5F3DB0 #993DB0
triadic
#5F3DB0 #B05F3D #3DB05F
tetradic
#5F3DB0 #B03D55 #8EB03D #3DB099
square
#5F3DB0 #B03D55 #8EB03D #3DB099
split-complementary
#5F3DB0 #B0993D #55B03D
monochromatic
#2E1D55 #462D83 #5F3DB0 #8062C8 #A58FD8

Accessibility & contrast

On white

7.55
#5F3DB0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#5F3DB0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F3DB0
7.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3DB0#FFFFFF#000000##FFFFFF
##5F3DB01.007.552.787.55
#FFFFFF7.551.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B4
Deuteranopia (green-blind)
#0052AE
Tritanopia (blue-blind)
#475871
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5f3db0;
/* rgb */ color: rgb(95, 61, 176);
/* oklch */ color: oklch(46.5% 0.174 291.8);
Tailwind
colors: {
  custom: {
    50: '#9374c8',
    500: '#5f3db0',
    950: '#000000',
  },
}
SCSS
$custom: #5f3db0;
$custom-light: #9374c8;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3db0",
  "rgb": {
    "r": 95,
    "g": 61,
    "b": 176
  },
  "hsl": {
    "h": 257.739,
    "s": 48.523,
    "l": 46.471
  },
  "oklch": {
    "l": 0.46473,
    "c": 0.17354,
    "h": 291.8
  },
  "luminance": 0.08905
}

Semantic roles & 50–950 ramp

primary
#5F3DB0
secondary
#B1C386
accent
#D850B0
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #5F3DB0

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

Preview Lab → · Contrast checker → · Palette generator →

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