#5D37C2#5D37C2

#5D37C2 is a mid, highly saturated violet. Relative luminance 0.090; OKLCH L 47.0% C 0.202 H 288.6°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#5D37C2
RGBrgb(93, 55, 194)
HSLhsl(256, 56%, 49%)
HSVhsv(256, 72%, 76%)
CMYKcmyk(52.1%, 71.6%, 0%, 23.9%)
CIE-LABlab(35.90, 50.16, -66.79)
CIE-LCHlch(35.90, 83.53, 306.91°)
OKLaboklab(46.95% 0.0645 -0.1919)
OKLCHoklch(46.95% 0.202 288.6)
XYZxyz(15.6151, 8.9538, 51.9340)
Luminance0.0896 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D37C2 #9CC237
analogous
#3757C2 #5D37C2 #A337C2
triadic
#5D37C2 #C25D37 #37C25D
tetradic
#5D37C2 #C23757 #9CC237 #37C2A3
square
#5D37C2 #C23757 #9CC237 #37C2A3
split-complementary
#5D37C2 #C2A337 #57C237
monochromatic
#2F1C63 #462992 #5D37C2 #8263D3 #A893E0

Accessibility & contrast

On white

7.52
#5D37C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#5D37C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D37C2
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D37C2#FFFFFF#000000##FFFFFF
##5D37C21.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C6
Deuteranopia (green-blind)
#0051BF
Tritanopia (blue-blind)
#375C79
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5d37c2;
/* rgb */ color: rgb(93, 55, 194);
/* oklch */ color: oklch(47.0% 0.202 288.6);
Tailwind
colors: {
  custom: {
    50: '#9571d6',
    500: '#5d37c2',
    950: '#000000',
  },
}
SCSS
$custom: #5d37c2;
$custom-light: #9571d6;
$custom-dark: #000000;
JSON
{
  "hex": "#5d37c2",
  "rgb": {
    "r": 93,
    "g": 55,
    "b": 194
  },
  "hsl": {
    "h": 256.403,
    "s": 55.823,
    "l": 48.824
  },
  "oklch": {
    "l": 0.46951,
    "c": 0.20245,
    "h": 288.6
  },
  "luminance": 0.08955
}

Semantic roles & 50–950 ramp

primary
#5D37C2
secondary
#B9CB89
accent
#DF49B6
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5D37C2

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

Preview Lab → · Contrast checker → · Palette generator →

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