#5D348D#5D348D

#5D348D is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.2% C 0.143 H 301.8°. Best body text is #FFFFFF at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#5D348D
RGBrgb(93, 52, 141)
HSLhsl(268, 46%, 38%)
HSVhsv(268, 63%, 55%)
CMYKcmyk(34%, 63.1%, 0%, 44.7%)
CIE-LABlab(31.13, 37.14, -42.72)
CIE-LCHlch(31.13, 56.61, 311.01°)
OKLaboklab(42.22% 0.0751 -0.1212)
OKLCHoklch(42.22% 0.143 301.8)
XYZxyz(10.5488, 6.7062, 25.9328)
Luminance0.0671 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D348D #648D34
analogous
#34388D #5D348D #89348D
triadic
#5D348D #8D5D34 #348D5D
tetradic
#5D348D #8D3438 #648D34 #348D89
square
#5D348D #8D3438 #648D34 #348D89
split-complementary
#5D348D #8D8934 #388D34
monochromatic
#221334 #402460 #5D348D #7A44BA #9A71CB

Accessibility & contrast

On white

8.97
#5D348D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#5D348D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D348D
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D348D#FFFFFF#000000##FFFFFF
##5D348D1.008.972.348.97
#FFFFFF8.971.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004990
Deuteranopia (green-blind)
#18498B
Tritanopia (blue-blind)
#53475B
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5d348d;
/* rgb */ color: rgb(93, 52, 141);
/* oklch */ color: oklch(42.2% 0.143 301.8);
Tailwind
colors: {
  custom: {
    50: '#8e6eaf',
    500: '#5d348d',
    950: '#000000',
  },
}
SCSS
$custom: #5d348d;
$custom-light: #8e6eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#5d348d",
  "rgb": {
    "r": 93,
    "g": 52,
    "b": 141
  },
  "hsl": {
    "h": 267.64,
    "s": 46.114,
    "l": 37.843
  },
  "oklch": {
    "l": 0.42224,
    "c": 0.14257,
    "h": 301.8
  },
  "luminance": 0.06706
}

Semantic roles & 50–950 ramp

primary
#5D348D
secondary
#91B36A
accent
#D65299
background
#F9F6FA
surface
#F1ECF4
border
#CBC7CE
text
#0D0710
muted
#7E7A7F

Preview Lab

Preview with #5D348D

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

Preview Lab → · Contrast checker → · Palette generator →

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