#5D37D6#5D37D6

#5D37D6 is a mid, highly saturated violet. Relative luminance 0.099; OKLCH L 48.8% C 0.225 H 285.4°. Best body text is #FFFFFF at 7.04:1 contrast (WCAG AA passes).

Color values

HEX#5D37D6
RGBrgb(93, 55, 214)
HSLhsl(254, 66%, 53%)
HSVhsv(254, 74%, 84%)
CMYKcmyk(56.5%, 74.3%, 0%, 16.1%)
CIE-LABlab(37.69, 55.80, -75.47)
CIE-LCHlch(37.69, 93.85, 306.48°)
OKLaboklab(48.76% 0.0599 -0.2173)
OKLCHoklch(48.76% 0.225 285.4)
XYZxyz(18.0143, 9.9135, 64.5695)
Luminance0.0992 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D37D6 #B0D637
analogous
#3760D6 #5D37D6 #AD37D6
triadic
#5D37D6 #D65D37 #37D65D
tetradic
#5D37D6 #D63760 #B0D637 #37D6AD
square
#5D37D6 #D63760 #B0D637 #37D6AD
split-complementary
#5D37D6 #D6AD37 #60D637
monochromatic
#30197A #4423AC #5D37D6 #866AE0 #AF9DEB

Accessibility & contrast

On white

7.04
#5D37D6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#5D37D6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D37D6
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D37D6#FFFFFF#000000##FFFFFF
##5D37D61.007.042.987.04
#FFFFFF7.041.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DDB
Deuteranopia (green-blind)
#0054D3
Tritanopia (blue-blind)
#206484
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5d37d6;
/* rgb */ color: rgb(93, 55, 214);
/* oklch */ color: oklch(48.8% 0.225 285.4);
Tailwind
colors: {
  custom: {
    50: '#9872e4',
    500: '#5d37d6',
    950: '#000000',
  },
}
SCSS
$custom: #5d37d6;
$custom-light: #9872e4;
$custom-dark: #000000;
JSON
{
  "hex": "#5d37d6",
  "rgb": {
    "r": 93,
    "g": 55,
    "b": 214
  },
  "hsl": {
    "h": 254.34,
    "s": 65.975,
    "l": 52.745
  },
  "oklch": {
    "l": 0.48763,
    "c": 0.22542,
    "h": 285.4
  },
  "luminance": 0.09915
}

Semantic roles & 50–950 ramp

primary
#5D37D6
secondary
#C6D792
accent
#E93FC0
background
#FAF7FE
surface
#F3EDFC
border
#CDC8D5
text
#0F0816
muted
#7F7B84

Preview Lab

Preview with #5D37D6

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

Preview Lab → · Contrast checker → · Palette generator →

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