#5E37CC#5E37CC

#5E37CC is a mid, highly saturated violet. Relative luminance 0.095; OKLCH L 47.9% C 0.214 H 287.3°. Best body text is #FFFFFF at 7.26:1 contrast (WCAG AA passes).

Color values

HEX#5E37CC
RGBrgb(94, 55, 204)
HSLhsl(256, 59%, 51%)
HSVhsv(256, 73%, 80%)
CMYKcmyk(53.9%, 73%, 0%, 20%)
CIE-LABlab(36.88, 53.13, -71.01)
CIE-LCHlch(36.88, 88.69, 306.80°)
OKLaboklab(47.94% 0.0637 -0.2042)
OKLCHoklch(47.94% 0.214 287.3)
XYZxyz(16.8781, 9.4708, 58.0537)
Luminance0.0947 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E37CC #A5CC37
analogous
#375ACC #5E37CC #A937CC
triadic
#5E37CC #CC5E37 #37CC5E
tetradic
#5E37CC #CC375A #A5CC37 #37CCA9
square
#5E37CC #CC375A #A5CC37 #37CCA9
split-complementary
#5E37CC #CCA937 #5ACC37
monochromatic
#311C6D #47289E #5E37CC #8568D8 #AD99E5

Accessibility & contrast

On white

7.26
#5E37CC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#5E37CC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E37CC
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E37CC#FFFFFF#000000##FFFFFF
##5E37CC1.007.262.897.26
#FFFFFF7.261.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AD0
Deuteranopia (green-blind)
#0053C9
Tritanopia (blue-blind)
#30607F
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5e37cc;
/* rgb */ color: rgb(94, 55, 204);
/* oklch */ color: oklch(47.9% 0.214 287.3);
Tailwind
colors: {
  custom: {
    50: '#9772dd',
    500: '#5e37cc',
    950: '#000000',
  },
}
SCSS
$custom: #5e37cc;
$custom-light: #9772dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5e37cc",
  "rgb": {
    "r": 94,
    "g": 55,
    "b": 204
  },
  "hsl": {
    "h": 255.705,
    "s": 59.363,
    "l": 50.784
  },
  "oklch": {
    "l": 0.47938,
    "c": 0.21396,
    "h": 287.3
  },
  "luminance": 0.09472
}

Semantic roles & 50–950 ramp

primary
#5E37CC
secondary
#BFD08E
accent
#E345B9
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0815
muted
#7E7B83

Preview Lab

Preview with #5E37CC

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

Preview Lab → · Contrast checker → · Palette generator →

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