#5D358C#5D358C

#5D358C is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.3% C 0.140 H 301.9°. Best body text is #FFFFFF at 8.92:1 contrast (WCAG AA passes).

Color values

HEX#5D358C
RGBrgb(93, 53, 140)
HSLhsl(268, 45%, 38%)
HSVhsv(268, 62%, 55%)
CMYKcmyk(33.6%, 62.1%, 0%, 45.1%)
CIE-LABlab(31.27, 36.31, -41.87)
CIE-LCHlch(31.27, 55.43, 310.93°)
OKLaboklab(42.31% 0.0739 -0.1187)
OKLCHoklch(42.31% 0.14 301.9)
XYZxyz(10.5198, 6.7668, 25.5578)
Luminance0.0677 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D358C #648C35
analogous
#35388C #5D358C #88358C
triadic
#5D358C #8C5D35 #358C5D
tetradic
#5D358C #8C3538 #648C35 #358C88
square
#5D358C #8C3538 #648C35 #358C88
split-complementary
#5D358C #8C8835 #388C35
monochromatic
#221333 #402460 #5D358C #7A46B8 #9A72CA

Accessibility & contrast

On white

8.92
#5D358C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D358C
8.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D358C#FFFFFF#000000##FFFFFF
##5D358C1.008.922.358.92
#FFFFFF8.921.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#01498F
Deuteranopia (green-blind)
#1B498A
Tritanopia (blue-blind)
#54475B
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5d358c;
/* rgb */ color: rgb(93, 53, 140);
/* oklch */ color: oklch(42.3% 0.140 301.9);
Tailwind
colors: {
  custom: {
    50: '#8e6eae',
    500: '#5d358c',
    950: '#000000',
  },
}
SCSS
$custom: #5d358c;
$custom-light: #8e6eae;
$custom-dark: #000000;
JSON
{
  "hex": "#5d358c",
  "rgb": {
    "r": 93,
    "g": 53,
    "b": 140
  },
  "hsl": {
    "h": 267.586,
    "s": 45.078,
    "l": 37.843
  },
  "oklch": {
    "l": 0.42305,
    "c": 0.13981,
    "h": 301.9
  },
  "luminance": 0.06767
}

Semantic roles & 50–950 ramp

primary
#5D358C
secondary
#91B26B
accent
#D55399
background
#F9F6FA
surface
#F1ECF4
border
#CBC7CE
text
#0D0710
muted
#7E7A7F

Preview Lab

Preview with #5D358C

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

Preview Lab → · Contrast checker → · Palette generator →

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