#5F3BB2#5F3BB2

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

Color values

HEX#5F3BB2
RGBrgb(95, 59, 178)
HSLhsl(258, 50%, 46%)
HSVhsv(258, 67%, 70%)
CMYKcmyk(46.6%, 66.9%, 0%, 30.2%)
CIE-LABlab(35.55, 43.85, -57.92)
CIE-LCHlch(35.55, 72.65, 307.13°)
OKLaboklab(46.34% 0.0664 -0.1658)
OKLCHoklch(46.34% 0.179 291.8)
XYZxyz(14.3169, 8.7747, 43.0502)
Luminance0.0877 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3BB2 #8EB23B
analogous
#3B53B2 #5F3BB2 #9B3BB2
triadic
#5F3BB2 #B25F3B #3BB25F
tetradic
#5F3BB2 #B23B53 #8EB23B #3BB29B
square
#5F3BB2 #B23B53 #8EB23B #3BB29B
split-complementary
#5F3BB2 #B29B3B #53B23B
monochromatic
#2E1D56 #462C84 #5F3BB2 #8060CA #A58EDA

Accessibility & contrast

On white

7.62
#5F3BB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F3BB2
7.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3BB2#FFFFFF#000000##FFFFFF
##5F3BB21.007.622.757.62
#FFFFFF7.621.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B6
Deuteranopia (green-blind)
#0051B0
Tritanopia (blue-blind)
#465871
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5f3bb2;
/* rgb */ color: rgb(95, 59, 178);
/* oklch */ color: oklch(46.3% 0.179 291.8);
Tailwind
colors: {
  custom: {
    50: '#9373ca',
    500: '#5f3bb2',
    950: '#000000',
  },
}
SCSS
$custom: #5f3bb2;
$custom-light: #9373ca;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3bb2",
  "rgb": {
    "r": 95,
    "g": 59,
    "b": 178
  },
  "hsl": {
    "h": 258.151,
    "s": 50.211,
    "l": 46.471
  },
  "oklch": {
    "l": 0.4634,
    "c": 0.17859,
    "h": 291.8
  },
  "luminance": 0.08775
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5F3BB2

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

Preview Lab → · Contrast checker → · Palette generator →

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