#5D348E#5D348E

#5D348E is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.3% C 0.144 H 301.5°. Best body text is #FFFFFF at 8.95:1 contrast (WCAG AA passes).

Color values

HEX#5D348E
RGBrgb(93, 52, 142)
HSLhsl(267, 46%, 38%)
HSVhsv(267, 63%, 56%)
CMYKcmyk(34.5%, 63.4%, 0%, 44.3%)
CIE-LABlab(31.20, 37.41, -43.22)
CIE-LCHlch(31.20, 57.16, 310.88°)
OKLaboklab(42.3% 0.0751 -0.1226)
OKLCHoklch(42.3% 0.144 301.5)
XYZxyz(10.6235, 6.7361, 26.3265)
Luminance0.0674 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D348E #658E34
analogous
#34388E #5D348E #8A348E
triadic
#5D348E #8E5D34 #348E5D
tetradic
#5D348E #8E3438 #658E34 #348E8A
square
#5D348E #8E3438 #658E34 #348E8A
split-complementary
#5D348E #8E8A34 #388E34
monochromatic
#221334 #402461 #5D348E #7A44BB #9A71CB

Accessibility & contrast

On white

8.95
#5D348E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#5D348E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D348E
8.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D348E#FFFFFF#000000##FFFFFF
##5D348E1.008.952.358.95
#FFFFFF8.951.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004991
Deuteranopia (green-blind)
#16498C
Tritanopia (blue-blind)
#53475C
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5d348e;
/* rgb */ color: rgb(93, 52, 142);
/* oklch */ color: oklch(42.3% 0.144 301.5);
Tailwind
colors: {
  custom: {
    50: '#8f6eb0',
    500: '#5d348e',
    950: '#000000',
  },
}
SCSS
$custom: #5d348e;
$custom-light: #8f6eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#5d348e",
  "rgb": {
    "r": 93,
    "g": 52,
    "b": 142
  },
  "hsl": {
    "h": 267.333,
    "s": 46.392,
    "l": 38.039
  },
  "oklch": {
    "l": 0.42297,
    "c": 0.1438,
    "h": 301.5
  },
  "luminance": 0.06736
}

Semantic roles & 50–950 ramp

primary
#5D348E
secondary
#92B36A
accent
#D6529A
background
#F9F6FA
surface
#F1ECF5
border
#CBC7CF
text
#0D0710
muted
#7E7A7F

Preview Lab

Preview with #5D348E

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

Preview Lab → · Contrast checker → · Palette generator →

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