#5D358E#5D358E

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

Color values

HEX#5D358E
RGBrgb(93, 53, 142)
HSLhsl(267, 46%, 38%)
HSVhsv(267, 63%, 56%)
CMYKcmyk(34.5%, 62.7%, 0%, 44.3%)
CIE-LABlab(31.41, 36.84, -42.88)
CIE-LCHlch(31.41, 56.54, 310.67°)
OKLaboklab(42.45% 0.0738 -0.1216)
OKLCHoklch(42.45% 0.142 301.3)
XYZxyz(10.6686, 6.8263, 26.3415)
Luminance0.0683 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D358E #668E35
analogous
#353A8E #5D358E #89358E
triadic
#5D358E #8E5D35 #358E5D
tetradic
#5D358E #8E353A #668E35 #358E89
square
#5D358E #8E353A #668E35 #358E89
split-complementary
#5D358E #8E8935 #3A8E35
monochromatic
#231435 #402461 #5D358E #7A46BA #9A73CB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5D358E#FFFFFF#000000##FFFFFF
##5D358E1.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)
#004991
Deuteranopia (green-blind)
#18498C
Tritanopia (blue-blind)
#53485C
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5d358e;
/* rgb */ color: rgb(93, 53, 142);
/* oklch */ color: oklch(42.4% 0.142 301.3);
Tailwind
colors: {
  custom: {
    50: '#8e6eb0',
    500: '#5d358e',
    950: '#000000',
  },
}
SCSS
$custom: #5d358e;
$custom-light: #8e6eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#5d358e",
  "rgb": {
    "r": 93,
    "g": 53,
    "b": 142
  },
  "hsl": {
    "h": 266.966,
    "s": 45.641,
    "l": 38.235
  },
  "oklch": {
    "l": 0.4245,
    "c": 0.14229,
    "h": 301.3
  },
  "luminance": 0.06826
}

Semantic roles & 50–950 ramp

primary
#5D358E
secondary
#93B36C
accent
#D5529B
background
#F9F6FA
surface
#F1ECF5
border
#CBC7CF
text
#0D0710
muted
#7E7A7F

Preview Lab

Preview with #5D358E

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

Preview Lab → · Contrast checker → · Palette generator →

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