#5F3BC7#5F3BC7

#5F3BC7 is a mid, highly saturated violet. Relative luminance 0.097; OKLCH L 48.1% C 0.204 H 288.0°. Best body text is #FFFFFF at 7.15:1 contrast (WCAG AA passes).

Color values

HEX#5F3BC7
RGBrgb(95, 59, 199)
HSLhsl(255, 56%, 51%)
HSVhsv(255, 70%, 78%)
CMYKcmyk(52.3%, 70.4%, 0%, 22%)
CIE-LABlab(37.27, 49.82, -67.46)
CIE-LCHlch(37.27, 83.86, 306.45°)
OKLaboklab(48.11% 0.0629 -0.1938)
OKLCHoklch(48.11% 0.204 288)
XYZxyz(16.5891, 9.6835, 55.0168)
Luminance0.0968 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3BC7 #A3C73B
analogous
#3B5DC7 #5F3BC7 #A53BC7
triadic
#5F3BC7 #C75F3B #3BC75F
tetradic
#5F3BC7 #C73B5D #A3C73B #3BC7A5
square
#5F3BC7 #C73B5D #A3C73B #3BC7A5
split-complementary
#5F3BC7 #C7A53B #5DC73B
monochromatic
#321E69 #482C99 #5F3BC7 #866BD5 #AD9AE2

Accessibility & contrast

On white

7.15
#5F3BC7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#5F3BC7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F3BC7
7.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3BC7#FFFFFF#000000##FFFFFF
##5F3BC71.007.152.947.15
#FFFFFF7.151.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BCB
Deuteranopia (green-blind)
#0054C4
Tritanopia (blue-blind)
#37607D
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5f3bc7;
/* rgb */ color: rgb(95, 59, 199);
/* oklch */ color: oklch(48.1% 0.204 288.0);
Tailwind
colors: {
  custom: {
    50: '#9674d9',
    500: '#5f3bc7',
    950: '#000000',
  },
}
SCSS
$custom: #5f3bc7;
$custom-light: #9674d9;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3bc7",
  "rgb": {
    "r": 95,
    "g": 59,
    "b": 199
  },
  "hsl": {
    "h": 255.429,
    "s": 55.556,
    "l": 50.588
  },
  "oklch": {
    "l": 0.48106,
    "c": 0.20376,
    "h": 288
  },
  "luminance": 0.09684
}

Semantic roles & 50–950 ramp

primary
#5F3BC7
secondary
#BECE90
accent
#DF49B8
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5F3BC7

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

Preview Lab → · Contrast checker → · Palette generator →

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