#5D378B#5D378B

#5D378B is a dark, vivid violet. Relative luminance 0.069; OKLCH L 42.5% C 0.135 H 301.8°. Best body text is #FFFFFF at 8.81:1 contrast (WCAG AA passes).

Color values

HEX#5D378B
RGBrgb(93, 55, 139)
HSLhsl(267, 43%, 38%)
HSVhsv(267, 60%, 55%)
CMYKcmyk(33.1%, 60.4%, 0%, 45.5%)
CIE-LABlab(31.63, 34.90, -40.67)
CIE-LCHlch(31.63, 53.59, 310.63°)
OKLaboklab(42.55% 0.0713 -0.1152)
OKLCHoklch(42.55% 0.135 301.8)
XYZxyz(10.5395, 6.9236, 25.2022)
Luminance0.0692 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D378B #658B37
analogous
#373B8B #5D378B #87378B
triadic
#5D378B #8B5D37 #378B5D
tetradic
#5D378B #8B373B #658B37 #378B87
square
#5D378B #8B373B #658B37 #378B87
split-complementary
#5D378B #8B8737 #3B8B37
monochromatic
#221433 #40265F #5D378B #7A48B7 #9A74C8

Accessibility & contrast

On white

8.81
#5D378B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#5D378B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D378B
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D378B#FFFFFF#000000##FFFFFF
##5D378B1.008.812.388.81
#FFFFFF8.811.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D4A8E
Deuteranopia (green-blind)
#204A89
Tritanopia (blue-blind)
#54485B
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5d378b;
/* rgb */ color: rgb(93, 55, 139);
/* oklch */ color: oklch(42.5% 0.135 301.8);
Tailwind
colors: {
  custom: {
    50: '#8e70ad',
    500: '#5d378b',
    950: '#000000',
  },
}
SCSS
$custom: #5d378b;
$custom-light: #8e70ad;
$custom-dark: #000000;
JSON
{
  "hex": "#5d378b",
  "rgb": {
    "r": 93,
    "g": 55,
    "b": 139
  },
  "hsl": {
    "h": 267.143,
    "s": 43.299,
    "l": 38.039
  },
  "oklch": {
    "l": 0.42548,
    "c": 0.13546,
    "h": 301.8
  },
  "luminance": 0.06924
}

Semantic roles & 50–950 ramp

primary
#5D378B
secondary
#92B16D
accent
#D3559A
background
#F8F6FA
surface
#F0ECF4
border
#CBC7CE
text
#0D0710
muted
#7D7A7F

Preview Lab

Preview with #5D378B

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

Preview Lab → · Contrast checker → · Palette generator →

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