#5F3BC4#5F3BC4

#5F3BC4 is a mid, highly saturated violet. Relative luminance 0.095; OKLCH L 47.8% C 0.200 H 288.5°. Best body text is #FFFFFF at 7.22:1 contrast (WCAG AA passes).

Color values

HEX#5F3BC4
RGBrgb(95, 59, 196)
HSLhsl(256, 54%, 50%)
HSVhsv(256, 70%, 77%)
CMYKcmyk(51.5%, 69.9%, 0%, 23.1%)
CIE-LABlab(37.01, 48.97, -66.12)
CIE-LCHlch(37.01, 82.28, 306.52°)
OKLaboklab(47.85% 0.0635 -0.1899)
OKLCHoklch(47.85% 0.2 288.5)
XYZxyz(16.2442, 9.5456, 53.2004)
Luminance0.0955 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3BC4 #A0C43B
analogous
#3B5CC4 #5F3BC4 #A33BC4
triadic
#5F3BC4 #C45F3B #3BC45F
tetradic
#5F3BC4 #C43B5C #A0C43B #3BC4A3
square
#5F3BC4 #C43B5C #A0C43B #3BC4A3
split-complementary
#5F3BC4 #C4A33B #5CC43B
monochromatic
#311F66 #482D95 #5F3BC4 #856AD2 #AC99E0

Accessibility & contrast

On white

7.22
#5F3BC4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#5F3BC4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F3BC4
7.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3BC4#FFFFFF#000000##FFFFFF
##5F3BC41.007.222.917.22
#FFFFFF7.221.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC8
Deuteranopia (green-blind)
#0054C1
Tritanopia (blue-blind)
#3A5F7B
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5f3bc4;
/* rgb */ color: rgb(95, 59, 196);
/* oklch */ color: oklch(47.8% 0.200 288.5);
Tailwind
colors: {
  custom: {
    50: '#9674d7',
    500: '#5f3bc4',
    950: '#000000',
  },
}
SCSS
$custom: #5f3bc4;
$custom-light: #9674d7;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3bc4",
  "rgb": {
    "r": 95,
    "g": 59,
    "b": 196
  },
  "hsl": {
    "h": 255.766,
    "s": 53.725,
    "l": 50
  },
  "oklch": {
    "l": 0.47847,
    "c": 0.20022,
    "h": 288.5
  },
  "luminance": 0.09546
}

Semantic roles & 50–950 ramp

primary
#5F3BC4
secondary
#BCCC8F
accent
#DD4BB7
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5F3BC4

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

Preview Lab → · Contrast checker → · Palette generator →

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