#5D348C#5D348C

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

Color values

HEX#5D348C
RGBrgb(93, 52, 140)
HSLhsl(268, 46%, 38%)
HSVhsv(268, 63%, 55%)
CMYKcmyk(33.6%, 62.9%, 0%, 45.1%)
CIE-LABlab(31.06, 36.88, -42.21)
CIE-LCHlch(31.06, 56.05, 311.14°)
OKLaboklab(42.15% 0.0752 -0.1197)
OKLCHoklch(42.15% 0.141 302.1)
XYZxyz(10.4747, 6.6766, 25.5427)
Luminance0.0668 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D348C #638C34
analogous
#34378C #5D348C #89348C
triadic
#5D348C #8C5D34 #348C5D
tetradic
#5D348C #8C3437 #638C34 #348C89
square
#5D348C #8C3437 #638C34 #348C89
split-complementary
#5D348C #8C8934 #378C34
monochromatic
#221333 #3F235F #5D348C #7B45B9 #9A70CA

Accessibility & contrast

On white

8.99
#5D348C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D348C
8.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D348C#FFFFFF#000000##FFFFFF
##5D348C1.008.992.348.99
#FFFFFF8.991.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00488F
Deuteranopia (green-blind)
#19498A
Tritanopia (blue-blind)
#54465B
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5d348c;
/* rgb */ color: rgb(93, 52, 140);
/* oklch */ color: oklch(42.2% 0.141 302.1);
Tailwind
colors: {
  custom: {
    50: '#8e6eae',
    500: '#5d348c',
    950: '#000000',
  },
}
SCSS
$custom: #5d348c;
$custom-light: #8e6eae;
$custom-dark: #000000;
JSON
{
  "hex": "#5d348c",
  "rgb": {
    "r": 93,
    "g": 52,
    "b": 140
  },
  "hsl": {
    "h": 267.955,
    "s": 45.833,
    "l": 37.647
  },
  "oklch": {
    "l": 0.42152,
    "c": 0.14133,
    "h": 302.1
  },
  "luminance": 0.06677
}

Semantic roles & 50–950 ramp

primary
#5D348C
secondary
#90B26A
accent
#D55298
background
#F9F6FA
surface
#F1ECF4
border
#CBC7CE
text
#0D0710
muted
#7E7A7F

Preview Lab

Preview with #5D348C

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

Preview Lab → · Contrast checker → · Palette generator →

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