#5E3DCA#5E3DCA

#5E3DCA is a mid, highly saturated violet. Relative luminance 0.100; OKLCH L 48.5% C 0.205 H 286.8°. Best body text is #FFFFFF at 7.01:1 contrast (WCAG AA passes).

Color values

HEX#5E3DCA
RGBrgb(94, 61, 202)
HSLhsl(254, 57%, 52%)
HSVhsv(254, 70%, 79%)
CMYKcmyk(53.5%, 69.8%, 0%, 20.8%)
CIE-LABlab(37.81, 49.46, -68.32)
CIE-LCHlch(37.81, 84.35, 305.90°)
OKLaboklab(48.55% 0.0592 -0.1964)
OKLCHoklch(48.55% 0.205 286.8)
XYZxyz(16.9423, 9.9806, 56.8994)
Luminance0.0998 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E3DCA #A9CA3D
analogous
#3D63CA #5E3DCA #A53DCA
triadic
#5E3DCA #CA5E3D #3DCA5E
tetradic
#5E3DCA #CA3D63 #A9CA3D #3DCAA5
square
#5E3DCA #CA3D63 #A9CA3D #3DCAA5
split-complementary
#5E3DCA #CAA53D #63CA3D
monochromatic
#311E6E #462B9F #5E3DCA #866DD7 #AE9DE4

Accessibility & contrast

On white

7.01
#5E3DCA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E3DCA
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E3DCA#FFFFFF#000000##FFFFFF
##5E3DCA1.007.013.007.01
#FFFFFF7.011.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CCE
Deuteranopia (green-blind)
#0055C7
Tritanopia (blue-blind)
#32627F
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5e3dca;
/* rgb */ color: rgb(94, 61, 202);
/* oklch */ color: oklch(48.5% 0.205 286.8);
Tailwind
colors: {
  custom: {
    50: '#9675db',
    500: '#5e3dca',
    950: '#000000',
  },
}
SCSS
$custom: #5e3dca;
$custom-light: #9675db;
$custom-dark: #000000;
JSON
{
  "hex": "#5e3dca",
  "rgb": {
    "r": 94,
    "g": 61,
    "b": 202
  },
  "hsl": {
    "h": 254.043,
    "s": 57.085,
    "l": 51.569
  },
  "oklch": {
    "l": 0.48546,
    "c": 0.20511,
    "h": 286.8
  },
  "luminance": 0.09981
}

Semantic roles & 50–950 ramp

primary
#5E3DCA
secondary
#C2D092
accent
#E047BD
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5E3DCA

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

Preview Lab → · Contrast checker → · Palette generator →

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