#5E3FC6#5E3FC6

#5E3FC6 is a mid, vivid violet. Relative luminance 0.100; OKLCH L 48.5% C 0.198 H 287.1°. Best body text is #FFFFFF at 6.99:1 contrast (WCAG AA passes).

Color values

HEX#5E3FC6
RGBrgb(94, 63, 198)
HSLhsl(254, 54%, 51%)
HSVhsv(254, 68%, 78%)
CMYKcmyk(52.5%, 68.2%, 0%, 22.4%)
CIE-LABlab(37.86, 47.23, -65.91)
CIE-LCHlch(37.86, 81.08, 305.63°)
OKLaboklab(48.48% 0.0581 -0.1893)
OKLCHoklch(48.48% 0.198 287.1)
XYZxyz(16.5836, 10.0111, 54.4736)
Luminance0.1001 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E3FC6 #A7C63F
analogous
#3F63C6 #5E3FC6 #A13FC6
triadic
#5E3FC6 #C65E3F #3FC65E
tetradic
#5E3FC6 #C63F63 #A7C63F #3FC6A1
square
#5E3FC6 #C63F63 #A7C63F #3FC6A1
split-complementary
#5E3FC6 #C6A13F #63C63F
monochromatic
#31206B #472E9A #5E3FC6 #866ED4 #AD9DE2

Accessibility & contrast

On white

6.99
#5E3FC6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.00
#5E3FC6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5E3FC6
6.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E3FC6#FFFFFF#000000##FFFFFF
##5E3FC61.006.993.006.99
#FFFFFF6.991.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF6.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CCA
Deuteranopia (green-blind)
#0055C3
Tritanopia (blue-blind)
#35627D
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5e3fc6;
/* rgb */ color: rgb(94, 63, 198);
/* oklch */ color: oklch(48.5% 0.198 287.1);
Tailwind
colors: {
  custom: {
    50: '#9576d8',
    500: '#5e3fc6',
    950: '#000000',
  },
}
SCSS
$custom: #5e3fc6;
$custom-light: #9576d8;
$custom-dark: #000000;
JSON
{
  "hex": "#5e3fc6",
  "rgb": {
    "r": 94,
    "g": 63,
    "b": 198
  },
  "hsl": {
    "h": 253.778,
    "s": 54.217,
    "l": 51.176
  },
  "oklch": {
    "l": 0.48482,
    "c": 0.19803,
    "h": 287.1
  },
  "luminance": 0.10012
}

Semantic roles & 50–950 ramp

primary
#5E3FC6
secondary
#C1CE93
accent
#DE4ABC
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5E3FC6

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

Preview Lab → · Contrast checker → · Palette generator →

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