#5F3EC2#5F3EC2

#5F3EC2 is a mid, vivid violet. Relative luminance 0.098; OKLCH L 48.1% C 0.194 H 288.3°. Best body text is #FFFFFF at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#5F3EC2
RGBrgb(95, 62, 194)
HSLhsl(255, 52%, 50%)
HSVhsv(255, 68%, 76%)
CMYKcmyk(51%, 68%, 0%, 23.9%)
CIE-LABlab(37.43, 46.78, -64.27)
CIE-LCHlch(37.43, 79.50, 306.05°)
OKLaboklab(48.09% 0.0611 -0.1845)
OKLCHoklch(48.09% 0.194 288.3)
XYZxyz(16.1767, 9.7724, 52.0624)
Luminance0.0977 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3EC2 #A1C23E
analogous
#3E5FC2 #5F3EC2 #A13EC2
triadic
#5F3EC2 #C25F3E #3EC25F
tetradic
#5F3EC2 #C23E5F #A1C23E #3EC2A1
square
#5F3EC2 #C23E5F #A1C23E #3EC2A1
split-complementary
#5F3EC2 #C2A13E #5FC23E
monochromatic
#312066 #482F94 #5F3EC2 #866DD1 #AC9BDF

Accessibility & contrast

On white

7.11
#5F3EC2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#5F3EC2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F3EC2
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3EC2#FFFFFF#000000##FFFFFF
##5F3EC21.007.112.957.11
#FFFFFF7.111.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC6
Deuteranopia (green-blind)
#0055BF
Tritanopia (blue-blind)
#3B5F7B
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5f3ec2;
/* rgb */ color: rgb(95, 62, 194);
/* oklch */ color: oklch(48.1% 0.194 288.3);
Tailwind
colors: {
  custom: {
    50: '#9576d5',
    500: '#5f3ec2',
    950: '#000000',
  },
}
SCSS
$custom: #5f3ec2;
$custom-light: #9576d5;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3ec2",
  "rgb": {
    "r": 95,
    "g": 62,
    "b": 194
  },
  "hsl": {
    "h": 255,
    "s": 51.969,
    "l": 50.196
  },
  "oklch": {
    "l": 0.48093,
    "c": 0.19431,
    "h": 288.3
  },
  "luminance": 0.09773
}

Semantic roles & 50–950 ramp

primary
#5F3EC2
secondary
#BDCB90
accent
#DB4CB8
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5F3EC2

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

Preview Lab → · Contrast checker → · Palette generator →

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