#5D358B#5D358B

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

Color values

HEX#5D358B
RGBrgb(93, 53, 139)
HSLhsl(268, 45%, 38%)
HSVhsv(268, 62%, 55%)
CMYKcmyk(33.1%, 61.9%, 0%, 45.5%)
CIE-LABlab(31.20, 36.05, -41.37)
CIE-LCHlch(31.20, 54.87, 311.07°)
OKLaboklab(42.23% 0.0739 -0.1172)
OKLCHoklch(42.23% 0.139 302.2)
XYZxyz(10.4464, 6.7374, 25.1712)
Luminance0.0674 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D358B #638B35
analogous
#35388B #5D358B #88358B
triadic
#5D358B #8B5D35 #358B5D
tetradic
#5D358B #8B3538 #638B35 #358B88
square
#5D358B #8B3538 #638B35 #358B88
split-complementary
#5D358B #8B8835 #388B35
monochromatic
#221332 #3F245F #5D358B #7B46B7 #9A71C9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5D358B#FFFFFF#000000##FFFFFF
##5D358B1.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)
#04498E
Deuteranopia (green-blind)
#1D4989
Tritanopia (blue-blind)
#54475B
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5d358b;
/* rgb */ color: rgb(93, 53, 139);
/* oklch */ color: oklch(42.2% 0.139 302.2);
Tailwind
colors: {
  custom: {
    50: '#8e6ead',
    500: '#5d358b',
    950: '#000000',
  },
}
SCSS
$custom: #5d358b;
$custom-light: #8e6ead;
$custom-dark: #000000;
JSON
{
  "hex": "#5d358b",
  "rgb": {
    "r": 93,
    "g": 53,
    "b": 139
  },
  "hsl": {
    "h": 267.907,
    "s": 44.792,
    "l": 37.647
  },
  "oklch": {
    "l": 0.42233,
    "c": 0.13857,
    "h": 302.2
  },
  "luminance": 0.06737
}

Semantic roles & 50–950 ramp

primary
#5D358B
secondary
#90B16A
accent
#D45398
background
#F9F6FA
surface
#F1ECF4
border
#CBC7CE
text
#0D0710
muted
#7E7A7F

Preview Lab

Preview with #5D358B

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

Preview Lab → · Contrast checker → · Palette generator →

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