#5D37B7#5D37B7

#5D37B7 is a mid, vivid violet. Relative luminance 0.085; OKLCH L 46.0% C 0.190 H 290.6°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#5D37B7
RGBrgb(93, 55, 183)
HSLhsl(258, 54%, 47%)
HSVhsv(258, 70%, 72%)
CMYKcmyk(49.2%, 69.9%, 0%, 28.2%)
CIE-LABlab(34.96, 47.05, -61.85)
CIE-LCHlch(34.96, 77.71, 307.26°)
OKLaboklab(46% 0.0667 -0.1774)
OKLCHoklch(46% 0.19 290.6)
XYZxyz(14.4252, 8.4779, 45.6669)
Luminance0.0848 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D37B7 #91B737
analogous
#3751B7 #5D37B7 #9D37B7
triadic
#5D37B7 #B75D37 #37B75D
tetradic
#5D37B7 #B73751 #91B737 #37B79D
square
#5D37B7 #B73751 #91B737 #37B79D
split-complementary
#5D37B7 #B79D37 #51B737
monochromatic
#2D1B59 #452988 #5D37B7 #7F5DCE #A48CDC

Accessibility & contrast

On white

7.79
#5D37B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#5D37B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D37B7
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D37B7#FFFFFF#000000##FFFFFF
##5D37B71.007.792.707.79
#FFFFFF7.791.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BB
Deuteranopia (green-blind)
#004FB4
Tritanopia (blue-blind)
#3F5873
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5d37b7;
/* rgb */ color: rgb(93, 55, 183);
/* oklch */ color: oklch(46.0% 0.190 290.6);
Tailwind
colors: {
  custom: {
    50: '#9371ce',
    500: '#5d37b7',
    950: '#000000',
  },
}
SCSS
$custom: #5d37b7;
$custom-light: #9371ce;
$custom-dark: #000000;
JSON
{
  "hex": "#5d37b7",
  "rgb": {
    "r": 93,
    "g": 55,
    "b": 183
  },
  "hsl": {
    "h": 257.813,
    "s": 53.782,
    "l": 46.667
  },
  "oklch": {
    "l": 0.45996,
    "c": 0.1895,
    "h": 290.6
  },
  "luminance": 0.08478
}

Semantic roles & 50–950 ramp

primary
#5D37B7
secondary
#B3C783
accent
#DD4BB2
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #5D37B7

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

Preview Lab → · Contrast checker → · Palette generator →

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