#5D37CC#5D37CC

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

Color values

HEX#5D37CC
RGBrgb(93, 55, 204)
HSLhsl(255, 59%, 51%)
HSVhsv(255, 73%, 80%)
CMYKcmyk(54.4%, 73%, 0%, 20%)
CIE-LABlab(36.78, 52.98, -71.18)
CIE-LCHlch(36.78, 88.73, 306.66°)
OKLaboklab(47.85% 0.0623 -0.2047)
OKLCHoklch(47.85% 0.214 286.9)
XYZxyz(16.7762, 9.4183, 58.0490)
Luminance0.0942 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D37CC #A6CC37
analogous
#375BCC #5D37CC #A737CC
triadic
#5D37CC #CC5D37 #37CC5D
tetradic
#5D37CC #CC375B #A6CC37 #37CCA7
square
#5D37CC #CC375B #A6CC37 #37CCA7
split-complementary
#5D37CC #CCA737 #5BCC37
monochromatic
#301C6D #46289E #5D37CC #8468D8 #AC99E5

Accessibility & contrast

On white

7.28
#5D37CC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D37CC
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D37CC#FFFFFF#000000##FFFFFF
##5D37CC1.007.282.887.28
#FFFFFF7.281.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AD0
Deuteranopia (green-blind)
#0052C9
Tritanopia (blue-blind)
#2D607F
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5d37cc;
/* rgb */ color: rgb(93, 55, 204);
/* oklch */ color: oklch(47.8% 0.214 286.9);
Tailwind
colors: {
  custom: {
    50: '#9672dd',
    500: '#5d37cc',
    950: '#000000',
  },
}
SCSS
$custom: #5d37cc;
$custom-light: #9672dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5d37cc",
  "rgb": {
    "r": 93,
    "g": 55,
    "b": 204
  },
  "hsl": {
    "h": 255.302,
    "s": 59.363,
    "l": 50.784
  },
  "oklch": {
    "l": 0.47845,
    "c": 0.21402,
    "h": 286.9
  },
  "luminance": 0.09419
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5D37CC

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

Preview Lab → · Contrast checker → · Palette generator →

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