#5F3EC0#5F3EC0

#5F3EC0 is a mid, vivid violet. Relative luminance 0.097; OKLCH L 47.9% C 0.192 H 288.7°. Best body text is #FFFFFF at 7.15:1 contrast (WCAG AA passes).

Color values

HEX#5F3EC0
RGBrgb(95, 62, 192)
HSLhsl(255, 51%, 50%)
HSVhsv(255, 68%, 75%)
CMYKcmyk(50.5%, 67.7%, 0%, 24.7%)
CIE-LABlab(37.27, 46.21, -63.37)
CIE-LCHlch(37.27, 78.43, 306.10°)
OKLaboklab(47.93% 0.0614 -0.1818)
OKLCHoklch(47.93% 0.192 288.7)
XYZxyz(15.9536, 9.6832, 50.8874)
Luminance0.0968 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3EC0 #9FC03E
analogous
#3E5EC0 #5F3EC0 #A03EC0
triadic
#5F3EC0 #C05F3E #3EC05F
tetradic
#5F3EC0 #C03E5E #9FC03E #3EC0A0
square
#5F3EC0 #C03E5E #9FC03E #3EC0A0
split-complementary
#5F3EC0 #C0A03E #5EC03E
monochromatic
#312063 #482F92 #5F3EC0 #856CCF #AB9ADE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5F3EC0#FFFFFF#000000##FFFFFF
##5F3EC01.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)
#005AC4
Deuteranopia (green-blind)
#0054BD
Tritanopia (blue-blind)
#3C5F7A
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5f3ec0;
/* rgb */ color: rgb(95, 62, 192);
/* oklch */ color: oklch(47.9% 0.192 288.7);
Tailwind
colors: {
  custom: {
    50: '#9576d4',
    500: '#5f3ec0',
    950: '#000000',
  },
}
SCSS
$custom: #5f3ec0;
$custom-light: #9576d4;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3ec0",
  "rgb": {
    "r": 95,
    "g": 62,
    "b": 192
  },
  "hsl": {
    "h": 255.231,
    "s": 51.181,
    "l": 49.804
  },
  "oklch": {
    "l": 0.47926,
    "c": 0.1919,
    "h": 288.7
  },
  "luminance": 0.09684
}

Semantic roles & 50–950 ramp

primary
#5F3EC0
secondary
#BBCA8F
accent
#DB4DB7
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5F3EC0

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

Preview Lab → · Contrast checker → · Palette generator →

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