#5F3BB3#5F3BB3

#5F3BB3 is a mid, vivid violet. Relative luminance 0.088; OKLCH L 46.4% C 0.180 H 291.6°. Best body text is #FFFFFF at 7.60:1 contrast (WCAG AA passes).

Color values

HEX#5F3BB3
RGBrgb(95, 59, 179)
HSLhsl(258, 50%, 47%)
HSVhsv(258, 67%, 70%)
CMYKcmyk(46.9%, 67%, 0%, 29.8%)
CIE-LABlab(35.63, 44.13, -58.38)
CIE-LCHlch(35.63, 73.19, 307.09°)
OKLaboklab(46.42% 0.0663 -0.1672)
OKLCHoklch(46.42% 0.18 291.6)
XYZxyz(14.4177, 8.8150, 43.5809)
Luminance0.0882 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3BB3 #8FB33B
analogous
#3B53B3 #5F3BB3 #9B3BB3
triadic
#5F3BB3 #B35F3B #3BB35F
tetradic
#5F3BB3 #B33B53 #8FB33B #3BB39B
square
#5F3BB3 #B33B53 #8FB33B #3BB39B
split-complementary
#5F3BB3 #B39B3B #53B33B
monochromatic
#2E1D57 #472C85 #5F3BB3 #8060CB #A58EDA

Accessibility & contrast

On white

7.60
#5F3BB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#5F3BB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F3BB3
7.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3BB3#FFFFFF#000000##FFFFFF
##5F3BB31.007.602.767.60
#FFFFFF7.601.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.601.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f3bb3;
/* rgb */ color: rgb(95, 59, 179);
/* oklch */ color: oklch(46.4% 0.180 291.6);
Tailwind
colors: {
  custom: {
    50: '#9373cb',
    500: '#5f3bb3',
    950: '#000000',
  },
}
SCSS
$custom: #5f3bb3;
$custom-light: #9373cb;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3bb3",
  "rgb": {
    "r": 95,
    "g": 59,
    "b": 179
  },
  "hsl": {
    "h": 258,
    "s": 50.42,
    "l": 46.667
  },
  "oklch": {
    "l": 0.46421,
    "c": 0.17981,
    "h": 291.6
  },
  "luminance": 0.08815
}

Semantic roles & 50–950 ramp

primary
#5F3BB3
secondary
#B2C585
accent
#DA4EB0
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #5F3BB3

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

Preview Lab → · Contrast checker → · Palette generator →

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