#5D2194#5D2194

#5D2194 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.3% C 0.175 H 302.8°. Best body text is #FFFFFF at 9.95:1 contrast (WCAG AA passes).

Color values

HEX#5D2194
RGBrgb(93, 33, 148)
HSLhsl(271, 64%, 35%)
HSVhsv(271, 78%, 58%)
CMYKcmyk(37.2%, 77.7%, 0%, 42%)
CIE-LABlab(28.26, 48.41, -51.69)
CIE-LCHlch(28.26, 70.81, 313.12°)
OKLaboklab(40.34% 0.0949 -0.1474)
OKLCHoklch(40.34% 0.175 302.8)
XYZxyz(10.4021, 5.5530, 28.5350)
Luminance0.0555 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2194 #589421
analogous
#232194 #5D2194 #942191
triadic
#5D2194 #945D21 #21945D
tetradic
#5D2194 #942321 #589421 #219194
square
#5D2194 #942321 #589421 #219194
split-complementary
#5D2194 #919421 #219423
monochromatic
#1E0B30 #3E1662 #5D2194 #7C2CC6 #9B56D9

Accessibility & contrast

On white

9.95
#5D2194 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#5D2194 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2194
9.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2194#FFFFFF#000000##FFFFFF
##5D21941.009.952.119.95
#FFFFFF9.951.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004297
Deuteranopia (green-blind)
#004292
Tritanopia (blue-blind)
#513F59
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5d2194;
/* rgb */ color: rgb(93, 33, 148);
/* oklch */ color: oklch(40.3% 0.175 302.8);
Tailwind
colors: {
  custom: {
    50: '#9063b4',
    500: '#5d2194',
    950: '#000000',
  },
}
SCSS
$custom: #5d2194;
$custom-light: #9063b4;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2194",
  "rgb": {
    "r": 93,
    "g": 33,
    "b": 148
  },
  "hsl": {
    "h": 271.304,
    "s": 63.536,
    "l": 35.49
  },
  "oklch": {
    "l": 0.4034,
    "c": 0.17531,
    "h": 302.8
  },
  "luminance": 0.05553
}

Semantic roles & 50–950 ramp

primary
#5D2194
secondary
#86BD54
accent
#E74190
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5D2194

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

Preview Lab → · Contrast checker → · Palette generator →

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