#5E3EC7#5E3EC7

#5E3EC7 is a mid, highly saturated violet. Relative luminance 0.099; OKLCH L 48.4% C 0.200 H 287.1°. Best body text is #FFFFFF at 7.02:1 contrast (WCAG AA passes).

Color values

HEX#5E3EC7
RGBrgb(94, 62, 199)
HSLhsl(254, 55%, 51%)
HSVhsv(254, 69%, 78%)
CMYKcmyk(52.8%, 68.8%, 0%, 22%)
CIE-LABlab(37.75, 48.06, -66.67)
CIE-LCHlch(37.75, 82.19, 305.79°)
OKLaboklab(48.43% 0.0589 -0.1915)
OKLCHoklch(48.43% 0.2 287.1)
XYZxyz(16.6445, 9.9476, 55.0648)
Luminance0.0995 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E3EC7 #A7C73E
analogous
#3E62C7 #5E3EC7 #A23EC7
triadic
#5E3EC7 #C75E3E #3EC75E
tetradic
#5E3EC7 #C73E62 #A7C73E #3EC7A2
square
#5E3EC7 #C73E62 #A7C73E #3EC7A2
split-complementary
#5E3EC7 #C7A23E #62C73E
monochromatic
#311F6B #472D9B #5E3EC7 #866DD5 #AD9DE3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5E3EC7#FFFFFF#000000##FFFFFF
##5E3EC71.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)
#005CCB
Deuteranopia (green-blind)
#0055C4
Tritanopia (blue-blind)
#34617E
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5e3ec7;
/* rgb */ color: rgb(94, 62, 199);
/* oklch */ color: oklch(48.4% 0.200 287.1);
Tailwind
colors: {
  custom: {
    50: '#9576d9',
    500: '#5e3ec7',
    950: '#000000',
  },
}
SCSS
$custom: #5e3ec7;
$custom-light: #9576d9;
$custom-dark: #000000;
JSON
{
  "hex": "#5e3ec7",
  "rgb": {
    "r": 94,
    "g": 62,
    "b": 199
  },
  "hsl": {
    "h": 254.015,
    "s": 55.02,
    "l": 51.176
  },
  "oklch": {
    "l": 0.48426,
    "c": 0.20039,
    "h": 287.1
  },
  "luminance": 0.09948
}

Semantic roles & 50–950 ramp

primary
#5E3EC7
secondary
#C1CF92
accent
#DE49BC
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5E3EC7

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

Preview Lab → · Contrast checker → · Palette generator →

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