#5D378C#5D378C

#5D378C is a dark, vivid violet. Relative luminance 0.070; OKLCH L 42.6% C 0.137 H 301.4°. Best body text is #FFFFFF at 8.78:1 contrast (WCAG AA passes).

Color values

HEX#5D378C
RGBrgb(93, 55, 140)
HSLhsl(267, 44%, 38%)
HSVhsv(267, 61%, 55%)
CMYKcmyk(33.6%, 60.7%, 0%, 45.1%)
CIE-LABlab(31.70, 35.17, -41.18)
CIE-LCHlch(31.70, 54.16, 310.50°)
OKLaboklab(42.62% 0.0713 -0.1166)
OKLCHoklch(42.62% 0.137 301.4)
XYZxyz(10.6129, 6.9529, 25.5888)
Luminance0.0695 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D378C #668C37
analogous
#373B8C #5D378C #87378C
triadic
#5D378C #8C5D37 #378C5D
tetradic
#5D378C #8C373B #668C37 #378C87
square
#5D378C #8C373B #668C37 #378C87
split-complementary
#5D378C #8C8737 #3B8C37
monochromatic
#231434 #402660 #5D378C #7A49B7 #9A75C9

Accessibility & contrast

On white

8.78
#5D378C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#5D378C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D378C
8.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D378C#FFFFFF#000000##FFFFFF
##5D378C1.008.782.398.78
#FFFFFF8.781.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A4A8F
Deuteranopia (green-blind)
#1E4A8A
Tritanopia (blue-blind)
#54485C
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5d378c;
/* rgb */ color: rgb(93, 55, 140);
/* oklch */ color: oklch(42.6% 0.137 301.4);
Tailwind
colors: {
  custom: {
    50: '#8e70ae',
    500: '#5d378c',
    950: '#000000',
  },
}
SCSS
$custom: #5d378c;
$custom-light: #8e70ae;
$custom-dark: #000000;
JSON
{
  "hex": "#5d378c",
  "rgb": {
    "r": 93,
    "g": 55,
    "b": 140
  },
  "hsl": {
    "h": 266.824,
    "s": 43.59,
    "l": 38.235
  },
  "oklch": {
    "l": 0.42618,
    "c": 0.13672,
    "h": 301.4
  },
  "luminance": 0.06953
}

Semantic roles & 50–950 ramp

primary
#5D378C
secondary
#93B16D
accent
#D3549B
background
#F8F6FA
surface
#F0ECF4
border
#CBC7CE
text
#0D0710
muted
#7D7A7F

Preview Lab

Preview with #5D378C

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

Preview Lab → · Contrast checker → · Palette generator →

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