#5F3BB1#5F3BB1

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

Color values

HEX#5F3BB1
RGBrgb(95, 59, 177)
HSLhsl(258, 50%, 46%)
HSVhsv(258, 67%, 69%)
CMYKcmyk(46.3%, 66.7%, 0%, 30.6%)
CIE-LABlab(35.47, 43.57, -57.45)
CIE-LCHlch(35.47, 72.10, 307.17°)
OKLaboklab(46.26% 0.0665 -0.1644)
OKLCHoklch(46.26% 0.177 292)
XYZxyz(14.2169, 8.7347, 42.5233)
Luminance0.0873 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3BB1 #8DB13B
analogous
#3B52B1 #5F3BB1 #9A3BB1
triadic
#5F3BB1 #B15F3B #3BB15F
tetradic
#5F3BB1 #B13B52 #8DB13B #3BB19A
square
#5F3BB1 #B13B52 #8DB13B #3BB19A
split-complementary
#5F3BB1 #B19A3B #52B13B
monochromatic
#2E1C55 #462C83 #5F3BB1 #805FCA #A48DD9

Accessibility & contrast

On white

7.64
#5F3BB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#5F3BB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F3BB1
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3BB1#FFFFFF#000000##FFFFFF
##5F3BB11.007.642.757.64
#FFFFFF7.641.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B5
Deuteranopia (green-blind)
#0051AF
Tritanopia (blue-blind)
#465871
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5f3bb1;
/* rgb */ color: rgb(95, 59, 177);
/* oklch */ color: oklch(46.3% 0.177 292.0);
Tailwind
colors: {
  custom: {
    50: '#9373c9',
    500: '#5f3bb1',
    950: '#000000',
  },
}
SCSS
$custom: #5f3bb1;
$custom-light: #9373c9;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3bb1",
  "rgb": {
    "r": 95,
    "g": 59,
    "b": 177
  },
  "hsl": {
    "h": 258.305,
    "s": 50,
    "l": 46.275
  },
  "oklch": {
    "l": 0.46259,
    "c": 0.17737,
    "h": 292
  },
  "luminance": 0.08735
}

Semantic roles & 50–950 ramp

primary
#5F3BB1
secondary
#B0C484
accent
#DA4EAF
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #5F3BB1

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

Preview Lab → · Contrast checker → · Palette generator →

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