#5D37D7#5D37D7

#5D37D7 is a mid, highly saturated violet. Relative luminance 0.100; OKLCH L 48.9% C 0.227 H 285.3°. Best body text is #FFFFFF at 7.02:1 contrast (WCAG AA passes).

Color values

HEX#5D37D7
RGBrgb(93, 55, 215)
HSLhsl(254, 67%, 53%)
HSVhsv(254, 74%, 84%)
CMYKcmyk(56.7%, 74.4%, 0%, 15.7%)
CIE-LABlab(37.78, 56.08, -75.89)
CIE-LCHlch(37.78, 94.36, 306.46°)
OKLaboklab(48.86% 0.0597 -0.2185)
OKLCHoklch(48.86% 0.227 285.3)
XYZxyz(18.1424, 9.9647, 65.2442)
Luminance0.0997 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D37D7 #B1D737
analogous
#3761D7 #5D37D7 #AD37D7
triadic
#5D37D7 #D75D37 #37D75D
tetradic
#5D37D7 #D73761 #B1D737 #37D7AD
square
#5D37D7 #D73761 #B1D737 #37D7AD
split-complementary
#5D37D7 #D7AD37 #61D737
monochromatic
#30197B #4423AE #5D37D7 #866AE1 #B09DEB

Accessibility & contrast

On white

7.02
#5D37D7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#5D37D7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D37D7
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D37D7#FFFFFF#000000##FFFFFF
##5D37D71.007.022.997.02
#FFFFFF7.021.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DDC
Deuteranopia (green-blind)
#0054D4
Tritanopia (blue-blind)
#1E6485
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5d37d7;
/* rgb */ color: rgb(93, 55, 215);
/* oklch */ color: oklch(48.9% 0.227 285.3);
Tailwind
colors: {
  custom: {
    50: '#9872e5',
    500: '#5d37d7',
    950: '#000000',
  },
}
SCSS
$custom: #5d37d7;
$custom-light: #9872e5;
$custom-dark: #000000;
JSON
{
  "hex": "#5d37d7",
  "rgb": {
    "r": 93,
    "g": 55,
    "b": 215
  },
  "hsl": {
    "h": 254.25,
    "s": 66.667,
    "l": 52.941
  },
  "oklch": {
    "l": 0.48856,
    "c": 0.22655,
    "h": 285.3
  },
  "luminance": 0.09966
}

Semantic roles & 50–950 ramp

primary
#5D37D7
secondary
#C7D792
accent
#EA3EC1
background
#FAF7FE
surface
#F3EDFC
border
#CDC8D5
text
#0F0816
muted
#7F7B84

Preview Lab

Preview with #5D37D7

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

Preview Lab → · Contrast checker → · Palette generator →

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