#5E37CD#5E37CD

#5E37CD is a mid, highly saturated violet. Relative luminance 0.095; OKLCH L 48.0% C 0.215 H 287.2°. Best body text is #FFFFFF at 7.23:1 contrast (WCAG AA passes).

Color values

HEX#5E37CD
RGBrgb(94, 55, 205)
HSLhsl(256, 60%, 51%)
HSVhsv(256, 73%, 80%)
CMYKcmyk(54.1%, 73.2%, 0%, 19.6%)
CIE-LABlab(36.96, 53.41, -71.45)
CIE-LCHlch(36.96, 89.20, 306.78°)
OKLaboklab(48.03% 0.0635 -0.2055)
OKLCHoklch(48.03% 0.215 287.2)
XYZxyz(16.9985, 9.5189, 58.6874)
Luminance0.0952 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E37CD #A6CD37
analogous
#375BCD #5E37CD #A937CD
triadic
#5E37CD #CD5E37 #37CD5E
tetradic
#5E37CD #CD375B #A6CD37 #37CDA9
square
#5E37CD #CD375B #A6CD37 #37CDA9
split-complementary
#5E37CD #CDA937 #5BCD37
monochromatic
#311C6E #47289F #5E37CD #8568D9 #AD99E5

Accessibility & contrast

On white

7.23
#5E37CD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#5E37CD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E37CD
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E37CD#FFFFFF#000000##FFFFFF
##5E37CD1.007.232.907.23
#FFFFFF7.231.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BD1
Deuteranopia (green-blind)
#0053CA
Tritanopia (blue-blind)
#2F607F
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5e37cd;
/* rgb */ color: rgb(94, 55, 205);
/* oklch */ color: oklch(48.0% 0.215 287.2);
Tailwind
colors: {
  custom: {
    50: '#9772dd',
    500: '#5e37cd',
    950: '#000000',
  },
}
SCSS
$custom: #5e37cd;
$custom-light: #9772dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5e37cd",
  "rgb": {
    "r": 94,
    "g": 55,
    "b": 205
  },
  "hsl": {
    "h": 255.6,
    "s": 60,
    "l": 50.98
  },
  "oklch": {
    "l": 0.48028,
    "c": 0.2151,
    "h": 287.2
  },
  "luminance": 0.0952
}

Semantic roles & 50–950 ramp

primary
#5E37CD
secondary
#C0D18F
accent
#E345BA
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0815
muted
#7E7B83

Preview Lab

Preview with #5E37CD

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

Preview Lab → · Contrast checker → · Palette generator →

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