#5D37A3#5D37A3

#5D37A3 is a dark, vivid violet. Relative luminance 0.077; OKLCH L 44.3% C 0.165 H 294.9°. Best body text is #FFFFFF at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#5D37A3
RGBrgb(93, 55, 163)
HSLhsl(261, 50%, 43%)
HSVhsv(261, 66%, 64%)
CMYKcmyk(42.9%, 66.3%, 0%, 36.1%)
CIE-LABlab(33.36, 41.45, -52.52)
CIE-LCHlch(33.36, 66.90, 308.28°)
OKLaboklab(44.35% 0.0697 -0.15)
OKLCHoklch(44.35% 0.165 294.9)
XYZxyz(12.4895, 7.7036, 35.4721)
Luminance0.0770 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D37A3 #7DA337
analogous
#3747A3 #5D37A3 #9337A3
triadic
#5D37A3 #A35D37 #37A35D
tetradic
#5D37A3 #A33747 #7DA337 #37A393
square
#5D37A3 #A33747 #7DA337 #37A393
split-complementary
#5D37A3 #A39337 #47A337
monochromatic
#291847 #432875 #5D37A3 #7B52C5 #9E80D4

Accessibility & contrast

On white

8.27
#5D37A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#5D37A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D37A3
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D37A3#FFFFFF#000000##FFFFFF
##5D37A31.008.272.548.27
#FFFFFF8.271.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA6
Deuteranopia (green-blind)
#004DA1
Tritanopia (blue-blind)
#4A5068
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5d37a3;
/* rgb */ color: rgb(93, 55, 163);
/* oklch */ color: oklch(44.3% 0.165 294.9);
Tailwind
colors: {
  custom: {
    50: '#9170bf',
    500: '#5d37a3',
    950: '#000000',
  },
}
SCSS
$custom: #5d37a3;
$custom-light: #9170bf;
$custom-dark: #000000;
JSON
{
  "hex": "#5d37a3",
  "rgb": {
    "r": 93,
    "g": 55,
    "b": 163
  },
  "hsl": {
    "h": 261.111,
    "s": 49.541,
    "l": 42.745
  },
  "oklch": {
    "l": 0.44348,
    "c": 0.16539,
    "h": 294.9
  },
  "luminance": 0.07704
}

Semantic roles & 50–950 ramp

primary
#5D37A3
secondary
#A5BE78
accent
#D94FA8
background
#F9F6FB
surface
#F2ECF7
border
#CCC7D0
text
#0D0812
muted
#7E7B81

Preview Lab

Preview with #5D37A3

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

Preview Lab → · Contrast checker → · Palette generator →

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