#5F3EC4#5F3EC4

#5F3EC4 is a mid, vivid violet. Relative luminance 0.099; OKLCH L 48.3% C 0.197 H 288.0°. Best body text is #FFFFFF at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#5F3EC4
RGBrgb(95, 62, 196)
HSLhsl(255, 53%, 51%)
HSVhsv(255, 68%, 77%)
CMYKcmyk(51.5%, 68.4%, 0%, 23.1%)
CIE-LABlab(37.60, 47.36, -65.17)
CIE-LCHlch(37.60, 80.56, 306.01°)
OKLaboklab(48.26% 0.0608 -0.1871)
OKLCHoklch(48.26% 0.197 288)
XYZxyz(16.4028, 9.8629, 53.2533)
Luminance0.0986 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3EC4 #A3C43E
analogous
#3E60C4 #5F3EC4 #A23EC4
triadic
#5F3EC4 #C45F3E #3EC45F
tetradic
#5F3EC4 #C43E60 #A3C43E #3EC4A2
square
#5F3EC4 #C43E60 #A3C43E #3EC4A2
split-complementary
#5F3EC4 #C4A23E #60C43E
monochromatic
#322068 #482E97 #5F3EC4 #866DD2 #AD9CE1

Accessibility & contrast

On white

7.06
#5F3EC4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#5F3EC4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F3EC4
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3EC4#FFFFFF#000000##FFFFFF
##5F3EC41.007.062.977.06
#FFFFFF7.061.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC8
Deuteranopia (green-blind)
#0055C1
Tritanopia (blue-blind)
#39607C
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5f3ec4;
/* rgb */ color: rgb(95, 62, 196);
/* oklch */ color: oklch(48.3% 0.197 288.0);
Tailwind
colors: {
  custom: {
    50: '#9676d7',
    500: '#5f3ec4',
    950: '#000000',
  },
}
SCSS
$custom: #5f3ec4;
$custom-light: #9676d7;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3ec4",
  "rgb": {
    "r": 95,
    "g": 62,
    "b": 196
  },
  "hsl": {
    "h": 254.776,
    "s": 53.175,
    "l": 50.588
  },
  "oklch": {
    "l": 0.48262,
    "c": 0.19673,
    "h": 288
  },
  "luminance": 0.09864
}

Semantic roles & 50–950 ramp

primary
#5F3EC4
secondary
#BECD91
accent
#DD4BB9
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0914
muted
#7E7B83

Preview Lab

Preview with #5F3EC4

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

Preview Lab → · Contrast checker → · Palette generator →

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