#5F3BC1#5F3BC1

#5F3BC1 is a mid, vivid violet. Relative luminance 0.094; OKLCH L 47.6% C 0.197 H 289.0°. Best body text is #FFFFFF at 7.29:1 contrast (WCAG AA passes).

Color values

HEX#5F3BC1
RGBrgb(95, 59, 193)
HSLhsl(256, 53%, 49%)
HSVhsv(256, 69%, 76%)
CMYKcmyk(50.8%, 69.4%, 0%, 24.3%)
CIE-LABlab(36.76, 48.11, -64.78)
CIE-LCHlch(36.76, 80.69, 306.60°)
OKLaboklab(47.59% 0.064 -0.1859)
OKLCHoklch(47.59% 0.197 289)
XYZxyz(15.9061, 9.4104, 51.4200)
Luminance0.0941 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3BC1 #9DC13B
analogous
#3B5AC1 #5F3BC1 #A23BC1
triadic
#5F3BC1 #C15F3B #3BC15F
tetradic
#5F3BC1 #C13B5A #9DC13B #3BC1A2
square
#5F3BC1 #C13B5A #9DC13B #3BC1A2
split-complementary
#5F3BC1 #C1A23B #5AC13B
monochromatic
#311E63 #482D92 #5F3BC1 #8468D1 #AB97DF

Accessibility & contrast

On white

7.29
#5F3BC1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#5F3BC1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F3BC1
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3BC1#FFFFFF#000000##FFFFFF
##5F3BC11.007.292.887.29
#FFFFFF7.291.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C5
Deuteranopia (green-blind)
#0053BE
Tritanopia (blue-blind)
#3C5D79
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5f3bc1;
/* rgb */ color: rgb(95, 59, 193);
/* oklch */ color: oklch(47.6% 0.197 289.0);
Tailwind
colors: {
  custom: {
    50: '#9574d5',
    500: '#5f3bc1',
    950: '#000000',
  },
}
SCSS
$custom: #5f3bc1;
$custom-light: #9574d5;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3bc1",
  "rgb": {
    "r": 95,
    "g": 59,
    "b": 193
  },
  "hsl": {
    "h": 256.119,
    "s": 53.175,
    "l": 49.412
  },
  "oklch": {
    "l": 0.4759,
    "c": 0.19666,
    "h": 289
  },
  "luminance": 0.09411
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5F3BC1

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

Preview Lab → · Contrast checker → · Palette generator →

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