#5F3BC2#5F3BC2

#5F3BC2 is a mid, vivid violet. Relative luminance 0.095; OKLCH L 47.7% C 0.198 H 288.8°. Best body text is #FFFFFF at 7.26:1 contrast (WCAG AA passes).

Color values

HEX#5F3BC2
RGBrgb(95, 59, 194)
HSLhsl(256, 53%, 50%)
HSVhsv(256, 70%, 76%)
CMYKcmyk(51%, 69.6%, 0%, 23.9%)
CIE-LABlab(36.85, 48.40, -65.23)
CIE-LCHlch(36.85, 81.22, 306.57°)
OKLaboklab(47.68% 0.0639 -0.1873)
OKLCHoklch(47.68% 0.198 288.8)
XYZxyz(16.0181, 9.4551, 52.0095)
Luminance0.0946 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3BC2 #9EC23B
analogous
#3B5BC2 #5F3BC2 #A33BC2
triadic
#5F3BC2 #C25F3B #3BC25F
tetradic
#5F3BC2 #C23B5B #9EC23B #3BC2A3
square
#5F3BC2 #C23B5B #9EC23B #3BC2A3
split-complementary
#5F3BC2 #C2A33B #5BC23B
monochromatic
#311E64 #482D93 #5F3BC2 #8569D1 #AB98E0

Accessibility & contrast

On white

7.26
#5F3BC2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#5F3BC2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F3BC2
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3BC2#FFFFFF#000000##FFFFFF
##5F3BC21.007.262.897.26
#FFFFFF7.261.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C6
Deuteranopia (green-blind)
#0053BF
Tritanopia (blue-blind)
#3B5E7A
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5f3bc2;
/* rgb */ color: rgb(95, 59, 194);
/* oklch */ color: oklch(47.7% 0.198 288.8);
Tailwind
colors: {
  custom: {
    50: '#9574d5',
    500: '#5f3bc2',
    950: '#000000',
  },
}
SCSS
$custom: #5f3bc2;
$custom-light: #9574d5;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3bc2",
  "rgb": {
    "r": 95,
    "g": 59,
    "b": 194
  },
  "hsl": {
    "h": 256,
    "s": 53.36,
    "l": 49.608
  },
  "oklch": {
    "l": 0.47675,
    "c": 0.19785,
    "h": 288.8
  },
  "luminance": 0.09456
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5F3BC2

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

Preview Lab → · Contrast checker → · Palette generator →

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