#5F3EC3#5F3EC3

#5F3EC3 is a mid, vivid violet. Relative luminance 0.098; OKLCH L 48.2% C 0.196 H 288.2°. Best body text is #FFFFFF at 7.09:1 contrast (WCAG AA passes).

Color values

HEX#5F3EC3
RGBrgb(95, 62, 195)
HSLhsl(255, 53%, 50%)
HSVhsv(255, 68%, 76%)
CMYKcmyk(51.3%, 68.2%, 0%, 23.5%)
CIE-LABlab(37.51, 47.07, -64.72)
CIE-LCHlch(37.51, 80.03, 306.03°)
OKLaboklab(48.18% 0.0609 -0.1858)
OKLCHoklch(48.18% 0.196 288.2)
XYZxyz(16.2894, 9.8175, 52.6558)
Luminance0.0982 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3EC3 #A2C33E
analogous
#3E60C3 #5F3EC3 #A13EC3
triadic
#5F3EC3 #C35F3E #3EC35F
tetradic
#5F3EC3 #C33E60 #A2C33E #3EC3A1
square
#5F3EC3 #C33E60 #A2C33E #3EC3A1
split-complementary
#5F3EC3 #C3A13E #60C33E
monochromatic
#312067 #482E95 #5F3EC3 #866DD2 #AC9BE0

Accessibility & contrast

On white

7.09
#5F3EC3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#5F3EC3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F3EC3
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3EC3#FFFFFF#000000##FFFFFF
##5F3EC31.007.092.967.09
#FFFFFF7.091.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC7
Deuteranopia (green-blind)
#0055C0
Tritanopia (blue-blind)
#3A607B
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5f3ec3;
/* rgb */ color: rgb(95, 62, 195);
/* oklch */ color: oklch(48.2% 0.196 288.2);
Tailwind
colors: {
  custom: {
    50: '#9576d6',
    500: '#5f3ec3',
    950: '#000000',
  },
}
SCSS
$custom: #5f3ec3;
$custom-light: #9576d6;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3ec3",
  "rgb": {
    "r": 95,
    "g": 62,
    "b": 195
  },
  "hsl": {
    "h": 254.887,
    "s": 52.569,
    "l": 50.392
  },
  "oklch": {
    "l": 0.48178,
    "c": 0.19553,
    "h": 288.2
  },
  "luminance": 0.09818
}

Semantic roles & 50–950 ramp

primary
#5F3EC3
secondary
#BDCC91
accent
#DC4CB8
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0914
muted
#7E7B83

Preview Lab

Preview with #5F3EC3

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

Preview Lab → · Contrast checker → · Palette generator →

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