#5D348A#5D348A

#5D348A is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.0% C 0.139 H 302.8°. Best body text is #FFFFFF at 9.04:1 contrast (WCAG AA passes).

Color values

HEX#5D348A
RGBrgb(93, 52, 138)
HSLhsl(269, 45%, 37%)
HSVhsv(269, 62%, 54%)
CMYKcmyk(32.6%, 62.3%, 0%, 45.9%)
CIE-LABlab(30.92, 36.35, -41.20)
CIE-LCHlch(30.92, 54.94, 311.43°)
OKLaboklab(42.01% 0.0753 -0.1167)
OKLCHoklch(42.01% 0.139 302.8)
XYZxyz(10.3286, 6.6181, 24.7731)
Luminance0.0662 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D348A #618A34
analogous
#34368A #5D348A #88348A
triadic
#5D348A #8A5D34 #348A5D
tetradic
#5D348A #8A3436 #618A34 #348A88
square
#5D348A #8A3436 #618A34 #348A88
split-complementary
#5D348A #8A8834 #368A34
monochromatic
#211331 #3F235E #5D348A #7B45B6 #9A6FC9

Accessibility & contrast

On white

9.04
#5D348A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#5D348A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D348A
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D348A#FFFFFF#000000##FFFFFF
##5D348A1.009.042.329.04
#FFFFFF9.041.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#02488D
Deuteranopia (green-blind)
#1C4988
Tritanopia (blue-blind)
#54465A
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5d348a;
/* rgb */ color: rgb(93, 52, 138);
/* oklch */ color: oklch(42.0% 0.139 302.8);
Tailwind
colors: {
  custom: {
    50: '#8e6ead',
    500: '#5d348a',
    950: '#000000',
  },
}
SCSS
$custom: #5d348a;
$custom-light: #8e6ead;
$custom-dark: #000000;
JSON
{
  "hex": "#5d348a",
  "rgb": {
    "r": 93,
    "g": 52,
    "b": 138
  },
  "hsl": {
    "h": 268.605,
    "s": 45.263,
    "l": 37.255
  },
  "oklch": {
    "l": 0.42007,
    "c": 0.13886,
    "h": 302.8
  },
  "luminance": 0.06618
}

Semantic roles & 50–950 ramp

primary
#5D348A
secondary
#8FB169
accent
#D55397
background
#F9F6FA
surface
#F1ECF4
border
#CBC7CE
text
#0D0710
muted
#7E7A7F

Preview Lab

Preview with #5D348A

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

Preview Lab → · Contrast checker → · Palette generator →

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