#5D378E#5D378E

#5D378E is a dark, vivid violet. Relative luminance 0.070; OKLCH L 42.8% C 0.139 H 300.8°. Best body text is #FFFFFF at 8.74:1 contrast (WCAG AA passes).

Color values

HEX#5D378E
RGBrgb(93, 55, 142)
HSLhsl(266, 44%, 39%)
HSVhsv(266, 61%, 56%)
CMYKcmyk(34.5%, 61.3%, 0%, 44.3%)
CIE-LABlab(31.84, 35.70, -42.19)
CIE-LCHlch(31.84, 55.27, 310.24°)
OKLaboklab(42.76% 0.0713 -0.1196)
OKLCHoklch(42.76% 0.139 300.8)
XYZxyz(10.7617, 7.0125, 26.3725)
Luminance0.0701 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D378E #688E37
analogous
#373C8E #5D378E #88378E
triadic
#5D378E #8E5D37 #378E5D
tetradic
#5D378E #8E373C #688E37 #378E88
square
#5D378E #8E373C #688E37 #378E88
split-complementary
#5D378E #8E8837 #3C8E37
monochromatic
#231536 #402662 #5D378E #7A49B9 #9A76CA

Accessibility & contrast

On white

8.74
#5D378E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#5D378E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D378E
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D378E#FFFFFF#000000##FFFFFF
##5D378E1.008.742.408.74
#FFFFFF8.741.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#054A91
Deuteranopia (green-blind)
#1C4A8C
Tritanopia (blue-blind)
#53495D
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5d378e;
/* rgb */ color: rgb(93, 55, 142);
/* oklch */ color: oklch(42.8% 0.139 300.8);
Tailwind
colors: {
  custom: {
    50: '#8e70b0',
    500: '#5d378e',
    950: '#000000',
  },
}
SCSS
$custom: #5d378e;
$custom-light: #8e70b0;
$custom-dark: #000000;
JSON
{
  "hex": "#5d378e",
  "rgb": {
    "r": 93,
    "g": 55,
    "b": 142
  },
  "hsl": {
    "h": 266.207,
    "s": 44.162,
    "l": 38.627
  },
  "oklch": {
    "l": 0.42761,
    "c": 0.13925,
    "h": 300.8
  },
  "luminance": 0.07013
}

Semantic roles & 50–950 ramp

primary
#5D378E
secondary
#95B36E
accent
#D4549C
background
#F9F6FA
surface
#F1ECF5
border
#CBC7CF
text
#0D0710
muted
#7E7A7F

Preview Lab

Preview with #5D378E

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

Preview Lab → · Contrast checker → · Palette generator →

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