#5D37CA#5D37CA

#5D37CA is a mid, highly saturated violet. Relative luminance 0.093; OKLCH L 47.7% C 0.212 H 287.2°. Best body text is #FFFFFF at 7.33:1 contrast (WCAG AA passes).

Color values

HEX#5D37CA
RGBrgb(93, 55, 202)
HSLhsl(256, 58%, 50%)
HSVhsv(256, 73%, 79%)
CMYKcmyk(54%, 72.8%, 0%, 20.8%)
CIE-LABlab(36.60, 52.42, -70.31)
CIE-LCHlch(36.60, 87.70, 306.71°)
OKLaboklab(47.67% 0.0628 -0.2022)
OKLCHoklch(47.67% 0.212 287.2)
XYZxyz(16.5379, 9.3229, 56.7937)
Luminance0.0932 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D37CA #A4CA37
analogous
#375ACA #5D37CA #A637CA
triadic
#5D37CA #CA5D37 #37CA5D
tetradic
#5D37CA #CA375A #A4CA37 #37CAA6
square
#5D37CA #CA375A #A4CA37 #37CAA6
split-complementary
#5D37CA #CAA637 #5ACA37
monochromatic
#301C6A #46299B #5D37CA #8467D7 #AB98E4

Accessibility & contrast

On white

7.33
#5D37CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#5D37CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D37CA
7.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D37CA#FFFFFF#000000##FFFFFF
##5D37CA1.007.332.867.33
#FFFFFF7.331.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.331.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5d37ca;
/* rgb */ color: rgb(93, 55, 202);
/* oklch */ color: oklch(47.7% 0.212 287.2);
Tailwind
colors: {
  custom: {
    50: '#9672db',
    500: '#5d37ca',
    950: '#000000',
  },
}
SCSS
$custom: #5d37ca;
$custom-light: #9672db;
$custom-dark: #000000;
JSON
{
  "hex": "#5d37ca",
  "rgb": {
    "r": 93,
    "g": 55,
    "b": 202
  },
  "hsl": {
    "h": 255.51,
    "s": 58.103,
    "l": 50.392
  },
  "oklch": {
    "l": 0.47665,
    "c": 0.21173,
    "h": 287.2
  },
  "luminance": 0.09324
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5D37CA

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

Preview Lab → · Contrast checker → · Palette generator →

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