#5D37D2#5D37D2

#5D37D2 is a mid, highly saturated violet. Relative luminance 0.097; OKLCH L 48.4% C 0.221 H 286.0°. Best body text is #FFFFFF at 7.14:1 contrast (WCAG AA passes).

Color values

HEX#5D37D2
RGBrgb(93, 55, 210)
HSLhsl(255, 63%, 52%)
HSVhsv(255, 74%, 82%)
CMYKcmyk(55.7%, 73.8%, 0%, 17.6%)
CIE-LABlab(37.32, 54.67, -73.76)
CIE-LCHlch(37.32, 91.81, 306.55°)
OKLaboklab(48.39% 0.0609 -0.2123)
OKLCHoklch(48.39% 0.221 286)
XYZxyz(17.5097, 9.7117, 61.9122)
Luminance0.0971 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D37D2 #ACD237
analogous
#375FD2 #5D37D2 #AB37D2
triadic
#5D37D2 #D25D37 #37D25D
tetradic
#5D37D2 #D2375F #ACD237 #37D2AB
square
#5D37D2 #D2375F #ACD237 #37D2AB
split-complementary
#5D37D2 #D2AB37 #5FD237
monochromatic
#301A74 #4525A6 #5D37D2 #8569DD #AE9BE8

Accessibility & contrast

On white

7.14
#5D37D2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#5D37D2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D37D2
7.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D37D2#FFFFFF#000000##FFFFFF
##5D37D21.007.142.947.14
#FFFFFF7.141.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CD6
Deuteranopia (green-blind)
#0053CF
Tritanopia (blue-blind)
#266282
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5d37d2;
/* rgb */ color: rgb(93, 55, 210);
/* oklch */ color: oklch(48.4% 0.221 286.0);
Tailwind
colors: {
  custom: {
    50: '#9772e1',
    500: '#5d37d2',
    950: '#000000',
  },
}
SCSS
$custom: #5d37d2;
$custom-light: #9772e1;
$custom-dark: #000000;
JSON
{
  "hex": "#5d37d2",
  "rgb": {
    "r": 93,
    "g": 55,
    "b": 210
  },
  "hsl": {
    "h": 254.71,
    "s": 63.265,
    "l": 51.961
  },
  "oklch": {
    "l": 0.48393,
    "c": 0.22088,
    "h": 286
  },
  "luminance": 0.09713
}

Semantic roles & 50–950 ramp

primary
#5D37D2
secondary
#C4D490
accent
#E641BE
background
#FAF7FE
surface
#F3EDFC
border
#CDC8D5
text
#0F0815
muted
#7F7B84

Preview Lab

Preview with #5D37D2

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

Preview Lab → · Contrast checker → · Palette generator →

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