#5F3AB3#5F3AB3

#5F3AB3 is a mid, vivid violet. Relative luminance 0.087; OKLCH L 46.3% C 0.181 H 291.8°. Best body text is #FFFFFF at 7.66:1 contrast (WCAG AA passes).

Color values

HEX#5F3AB3
RGBrgb(95, 58, 179)
HSLhsl(258, 51%, 46%)
HSVhsv(258, 68%, 70%)
CMYKcmyk(46.9%, 67.6%, 0%, 29.8%)
CIE-LABlab(35.43, 44.68, -58.71)
CIE-LCHlch(35.43, 73.78, 307.27°)
OKLaboklab(46.28% 0.0673 -0.1681)
OKLCHoklch(46.28% 0.181 291.8)
XYZxyz(14.3668, 8.7132, 43.5639)
Luminance0.0871 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3AB3 #8EB33A
analogous
#3A52B3 #5F3AB3 #9C3AB3
triadic
#5F3AB3 #B35F3A #3AB35F
tetradic
#5F3AB3 #B33A52 #8EB33A #3AB39C
square
#5F3AB3 #B33A52 #8EB33A #3AB39C
split-complementary
#5F3AB3 #B39C3A #52B33A
monochromatic
#2E1C57 #462B85 #5F3AB3 #805FCB #A58DDA

Accessibility & contrast

On white

7.66
#5F3AB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#5F3AB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F3AB3
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3AB3#FFFFFF#000000##FFFFFF
##5F3AB31.007.662.747.66
#FFFFFF7.661.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B7
Deuteranopia (green-blind)
#0051B1
Tritanopia (blue-blind)
#455872
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5f3ab3;
/* rgb */ color: rgb(95, 58, 179);
/* oklch */ color: oklch(46.3% 0.181 291.8);
Tailwind
colors: {
  custom: {
    50: '#9473cb',
    500: '#5f3ab3',
    950: '#000000',
  },
}
SCSS
$custom: #5f3ab3;
$custom-light: #9473cb;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3ab3",
  "rgb": {
    "r": 95,
    "g": 58,
    "b": 179
  },
  "hsl": {
    "h": 258.347,
    "s": 51.055,
    "l": 46.471
  },
  "oklch": {
    "l": 0.46278,
    "c": 0.18107,
    "h": 291.8
  },
  "luminance": 0.08714
}

Semantic roles & 50–950 ramp

primary
#5F3AB3
secondary
#B1C584
accent
#DB4DAF
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #5F3AB3

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

Preview Lab → · Contrast checker → · Palette generator →

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