#5D349D#5D349D

#5D349D is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.4% C 0.162 H 297.1°. Best body text is #FFFFFF at 8.59:1 contrast (WCAG AA passes).

Color values

HEX#5D349D
RGBrgb(93, 52, 157)
HSLhsl(263, 50%, 41%)
HSVhsv(263, 67%, 62%)
CMYKcmyk(40.8%, 66.9%, 0%, 38.4%)
CIE-LABlab(32.30, 41.44, -50.61)
CIE-LCHlch(32.30, 65.41, 309.31°)
OKLaboklab(43.44% 0.0738 -0.1444)
OKLCHoklch(43.44% 0.162 297.1)
XYZxyz(11.8264, 7.2173, 32.6617)
Luminance0.0722 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D349D #749D34
analogous
#343F9D #5D349D #91349D
triadic
#5D349D #9D5D34 #349D5D
tetradic
#5D349D #9D343F #749D34 #349D91
square
#5D349D #9D343F #749D34 #349D91
split-complementary
#5D349D #9D9134 #3F9D34
monochromatic
#271641 #42256F #5D349D #7A4BC3 #9C79D3

Accessibility & contrast

On white

8.59
#5D349D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#5D349D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D349D
8.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D349D#FFFFFF#000000##FFFFFF
##5D349D1.008.592.448.59
#FFFFFF8.591.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA0
Deuteranopia (green-blind)
#004B9B
Tritanopia (blue-blind)
#4D4C64
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5d349d;
/* rgb */ color: rgb(93, 52, 157);
/* oklch */ color: oklch(43.4% 0.162 297.1);
Tailwind
colors: {
  custom: {
    50: '#906ebb',
    500: '#5d349d',
    950: '#000000',
  },
}
SCSS
$custom: #5d349d;
$custom-light: #906ebb;
$custom-dark: #000000;
JSON
{
  "hex": "#5d349d",
  "rgb": {
    "r": 93,
    "g": 52,
    "b": 157
  },
  "hsl": {
    "h": 263.429,
    "s": 50.239,
    "l": 40.98
  },
  "oklch": {
    "l": 0.43439,
    "c": 0.16212,
    "h": 297.1
  },
  "luminance": 0.07217
}

Semantic roles & 50–950 ramp

primary
#5D349D
secondary
#9EBB72
accent
#DA4EA3
background
#F9F6FB
surface
#F1ECF6
border
#CBC7D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5D349D

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

Preview Lab → · Contrast checker → · Palette generator →

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