#5F3BC3#5F3BC3

#5F3BC3 is a mid, vivid violet. Relative luminance 0.095; OKLCH L 47.8% C 0.199 H 288.7°. Best body text is #FFFFFF at 7.24:1 contrast (WCAG AA passes).

Color values

HEX#5F3BC3
RGBrgb(95, 59, 195)
HSLhsl(256, 54%, 50%)
HSVhsv(256, 70%, 76%)
CMYKcmyk(51.3%, 69.7%, 0%, 23.5%)
CIE-LABlab(36.93, 48.68, -65.67)
CIE-LCHlch(36.93, 81.75, 306.55°)
OKLaboklab(47.76% 0.0637 -0.1886)
OKLCHoklch(47.76% 0.199 288.7)
XYZxyz(16.1307, 9.5002, 52.6030)
Luminance0.0950 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3BC3 #9FC33B
analogous
#3B5BC3 #5F3BC3 #A33BC3
triadic
#5F3BC3 #C35F3B #3BC35F
tetradic
#5F3BC3 #C33B5B #9FC33B #3BC3A3
square
#5F3BC3 #C33B5B #9FC33B #3BC3A3
split-complementary
#5F3BC3 #C3A33B #5BC33B
monochromatic
#311F65 #482D94 #5F3BC3 #8569D2 #AB98E0

Accessibility & contrast

On white

7.24
#5F3BC3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#5F3BC3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F3BC3
7.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3BC3#FFFFFF#000000##FFFFFF
##5F3BC31.007.242.907.24
#FFFFFF7.241.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC7
Deuteranopia (green-blind)
#0053C0
Tritanopia (blue-blind)
#3A5E7B
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5f3bc3;
/* rgb */ color: rgb(95, 59, 195);
/* oklch */ color: oklch(47.8% 0.199 288.7);
Tailwind
colors: {
  custom: {
    50: '#9674d6',
    500: '#5f3bc3',
    950: '#000000',
  },
}
SCSS
$custom: #5f3bc3;
$custom-light: #9674d6;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3bc3",
  "rgb": {
    "r": 95,
    "g": 59,
    "b": 195
  },
  "hsl": {
    "h": 255.882,
    "s": 53.543,
    "l": 49.804
  },
  "oklch": {
    "l": 0.47761,
    "c": 0.19903,
    "h": 288.7
  },
  "luminance": 0.09501
}

Semantic roles & 50–950 ramp

primary
#5F3BC3
secondary
#BBCC8E
accent
#DD4BB6
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5F3BC3

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

Preview Lab → · Contrast checker → · Palette generator →

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