#5E37CA#5E37CA

#5E37CA is a mid, highly saturated violet. Relative luminance 0.094; OKLCH L 47.8% C 0.212 H 287.7°. Best body text is #FFFFFF at 7.30:1 contrast (WCAG AA passes).

Color values

HEX#5E37CA
RGBrgb(94, 55, 202)
HSLhsl(256, 58%, 50%)
HSVhsv(256, 73%, 79%)
CMYKcmyk(53.5%, 72.8%, 0%, 20.8%)
CIE-LABlab(36.70, 52.56, -70.14)
CIE-LCHlch(36.70, 87.65, 306.85°)
OKLaboklab(47.76% 0.0642 -0.2017)
OKLCHoklch(47.76% 0.212 287.7)
XYZxyz(16.6398, 9.3755, 56.7985)
Luminance0.0938 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E37CA #A3CA37
analogous
#375ACA #5E37CA #A737CA
triadic
#5E37CA #CA5E37 #37CA5E
tetradic
#5E37CA #CA375A #A3CA37 #37CAA7
square
#5E37CA #CA375A #A3CA37 #37CAA7
split-complementary
#5E37CA #CAA737 #5ACA37
monochromatic
#311C6A #47299B #5E37CA #8567D7 #AC98E4

Accessibility & contrast

On white

7.30
#5E37CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#5E37CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E37CA
7.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E37CA#FFFFFF#000000##FFFFFF
##5E37CA1.007.302.887.30
#FFFFFF7.301.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ACE
Deuteranopia (green-blind)
#0052C7
Tritanopia (blue-blind)
#325F7D
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5e37ca;
/* rgb */ color: rgb(94, 55, 202);
/* oklch */ color: oklch(47.8% 0.212 287.7);
Tailwind
colors: {
  custom: {
    50: '#9672db',
    500: '#5e37ca',
    950: '#000000',
  },
}
SCSS
$custom: #5e37ca;
$custom-light: #9672db;
$custom-dark: #000000;
JSON
{
  "hex": "#5e37ca",
  "rgb": {
    "r": 94,
    "g": 55,
    "b": 202
  },
  "hsl": {
    "h": 255.918,
    "s": 58.103,
    "l": 50.392
  },
  "oklch": {
    "l": 0.47758,
    "c": 0.21166,
    "h": 287.7
  },
  "luminance": 0.09376
}

Semantic roles & 50–950 ramp

primary
#5E37CA
secondary
#BECF8E
accent
#E146B8
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0815
muted
#7E7B83

Preview Lab

Preview with #5E37CA

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

Preview Lab → · Contrast checker → · Palette generator →

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