#5D388E#5D388E

#5D388E is a dark, vivid violet. Relative luminance 0.071; OKLCH L 42.9% C 0.138 H 300.5°. Best body text is #FFFFFF at 8.67:1 contrast (WCAG AA passes).

Color values

HEX#5D388E
RGBrgb(93, 56, 142)
HSLhsl(266, 43%, 39%)
HSVhsv(266, 61%, 56%)
CMYKcmyk(34.5%, 60.6%, 0%, 44.3%)
CIE-LABlab(32.05, 35.13, -41.85)
CIE-LCHlch(32.05, 54.63, 310.01°)
OKLaboklab(42.92% 0.07 -0.1186)
OKLCHoklch(42.92% 0.138 300.5)
XYZxyz(10.8097, 7.1084, 26.3885)
Luminance0.0711 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D388E #698E38
analogous
#383E8E #5D388E #88388E
triadic
#5D388E #8E5D38 #388E5D
tetradic
#5D388E #8E383E #698E38 #388E88
square
#5D388E #8E383E #698E38 #388E88
split-complementary
#5D388E #8E8838 #3E8E38
monochromatic
#241536 #402762 #5D388E #7A4BB8 #9A77C9

Accessibility & contrast

On white

8.67
#5D388E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#5D388E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D388E
8.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D388E#FFFFFF#000000##FFFFFF
##5D388E1.008.672.428.67
#FFFFFF8.671.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#094B91
Deuteranopia (green-blind)
#1D4B8C
Tritanopia (blue-blind)
#534A5D
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5d388e;
/* rgb */ color: rgb(93, 56, 142);
/* oklch */ color: oklch(42.9% 0.138 300.5);
Tailwind
colors: {
  custom: {
    50: '#8e70b0',
    500: '#5d388e',
    950: '#000000',
  },
}
SCSS
$custom: #5d388e;
$custom-light: #8e70b0;
$custom-dark: #000000;
JSON
{
  "hex": "#5d388e",
  "rgb": {
    "r": 93,
    "g": 56,
    "b": 142
  },
  "hsl": {
    "h": 265.814,
    "s": 43.434,
    "l": 38.824
  },
  "oklch": {
    "l": 0.4292,
    "c": 0.13771,
    "h": 300.5
  },
  "luminance": 0.07108
}

Semantic roles & 50–950 ramp

primary
#5D388E
secondary
#96B26F
accent
#D3559D
background
#F9F6FA
surface
#F1ECF5
border
#CBC7CF
text
#0D0710
muted
#7E7A7F

Preview Lab

Preview with #5D388E

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

Preview Lab → · Contrast checker → · Palette generator →

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