#5D368B#5D368B

#5D368B is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.4% C 0.137 H 302.0°. Best body text is #FFFFFF at 8.88:1 contrast (WCAG AA passes).

Color values

HEX#5D368B
RGBrgb(93, 54, 139)
HSLhsl(268, 44%, 38%)
HSVhsv(268, 61%, 55%)
CMYKcmyk(33.1%, 61.2%, 0%, 45.5%)
CIE-LABlab(31.42, 35.48, -41.02)
CIE-LCHlch(31.42, 54.23, 310.86°)
OKLaboklab(42.39% 0.0726 -0.1162)
OKLCHoklch(42.39% 0.137 302)
XYZxyz(10.4925, 6.8295, 25.1865)
Luminance0.0683 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D368B #648B36
analogous
#363A8B #5D368B #87368B
triadic
#5D368B #8B5D36 #368B5D
tetradic
#5D368B #8B363A #648B36 #368B87
square
#5D368B #8B363A #648B36 #368B87
split-complementary
#5D368B #8B8736 #3A8B36
monochromatic
#221433 #40255F #5D368B #7A47B7 #9A73C9

Accessibility & contrast

On white

8.88
#5D368B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#5D368B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D368B
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D368B#FFFFFF#000000##FFFFFF
##5D368B1.008.882.378.88
#FFFFFF8.881.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#09498E
Deuteranopia (green-blind)
#1E4A89
Tritanopia (blue-blind)
#54475B
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5d368b;
/* rgb */ color: rgb(93, 54, 139);
/* oklch */ color: oklch(42.4% 0.137 302.0);
Tailwind
colors: {
  custom: {
    50: '#8e6fad',
    500: '#5d368b',
    950: '#000000',
  },
}
SCSS
$custom: #5d368b;
$custom-light: #8e6fad;
$custom-dark: #000000;
JSON
{
  "hex": "#5d368b",
  "rgb": {
    "r": 93,
    "g": 54,
    "b": 139
  },
  "hsl": {
    "h": 267.529,
    "s": 44.041,
    "l": 37.843
  },
  "oklch": {
    "l": 0.42389,
    "c": 0.13702,
    "h": 302
  },
  "luminance": 0.0683
}

Semantic roles & 50–950 ramp

primary
#5D368B
secondary
#91B16C
accent
#D45499
background
#F8F6FA
surface
#F0ECF4
border
#CBC7CE
text
#0D0710
muted
#7D7A7F

Preview Lab

Preview with #5D368B

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

Preview Lab → · Contrast checker → · Palette generator →

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