#5E3FC5#5E3FC5

#5E3FC5 is a mid, vivid violet. Relative luminance 0.100; OKLCH L 48.4% C 0.197 H 287.2°. Best body text is #FFFFFF at 7.02:1 contrast (WCAG AA passes).

Color values

HEX#5E3FC5
RGBrgb(94, 63, 197)
HSLhsl(254, 54%, 51%)
HSVhsv(254, 68%, 77%)
CMYKcmyk(52.3%, 68%, 0%, 22.7%)
CIE-LABlab(37.78, 46.94, -65.46)
CIE-LCHlch(37.78, 80.55, 305.64°)
OKLaboklab(48.4% 0.0583 -0.188)
OKLCHoklch(48.4% 0.197 287.2)
XYZxyz(16.4687, 9.9651, 53.8682)
Luminance0.0997 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E3FC5 #A6C53F
analogous
#3F63C5 #5E3FC5 #A13FC5
triadic
#5E3FC5 #C55E3F #3FC55E
tetradic
#5E3FC5 #C53F63 #A6C53F #3FC5A1
square
#5E3FC5 #C53F63 #A6C53F #3FC5A1
split-complementary
#5E3FC5 #C5A13F #63C53F
monochromatic
#31206A #472E99 #5E3FC5 #856ED3 #AD9DE1

Accessibility & contrast

On white

7.02
#5E3FC5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#5E3FC5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E3FC5
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E3FC5#FFFFFF#000000##FFFFFF
##5E3FC51.007.022.997.02
#FFFFFF7.021.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC9
Deuteranopia (green-blind)
#0055C2
Tritanopia (blue-blind)
#36617D
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5e3fc5;
/* rgb */ color: rgb(94, 63, 197);
/* oklch */ color: oklch(48.4% 0.197 287.2);
Tailwind
colors: {
  custom: {
    50: '#9576d8',
    500: '#5e3fc5',
    950: '#000000',
  },
}
SCSS
$custom: #5e3fc5;
$custom-light: #9576d8;
$custom-dark: #000000;
JSON
{
  "hex": "#5e3fc5",
  "rgb": {
    "r": 94,
    "g": 63,
    "b": 197
  },
  "hsl": {
    "h": 253.881,
    "s": 53.6,
    "l": 50.98
  },
  "oklch": {
    "l": 0.48397,
    "c": 0.19681,
    "h": 287.2
  },
  "luminance": 0.09966
}

Semantic roles & 50–950 ramp

primary
#5E3FC5
secondary
#C0CE92
accent
#DD4BBB
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5E3FC5

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

Preview Lab → · Contrast checker → · Palette generator →

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