#5D2392#5D2392

#5D2392 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.4% C 0.171 H 303.1°. Best body text is #FFFFFF at 9.90:1 contrast (WCAG AA passes).

Color values

HEX#5D2392
RGBrgb(93, 35, 146)
HSLhsl(271, 61%, 35%)
HSVhsv(271, 76%, 57%)
CMYKcmyk(36.3%, 76%, 0%, 42.7%)
CIE-LABlab(28.39, 47.05, -50.23)
CIE-LCHlch(28.39, 68.83, 313.13°)
OKLaboklab(40.38% 0.0935 -0.1432)
OKLCHoklch(40.38% 0.171 303.1)
XYZxyz(10.3023, 5.6045, 27.7276)
Luminance0.0561 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2392 #589223
analogous
#252392 #5D2392 #92238F
triadic
#5D2392 #925D23 #23925D
tetradic
#5D2392 #922523 #589223 #238F92
square
#5D2392 #922523 #589223 #238F92
split-complementary
#5D2392 #8F9223 #239225
monochromatic
#1E0B2F #3E1761 #5D2392 #7C2FC3 #9B58D7

Accessibility & contrast

On white

9.90
#5D2392 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#5D2392 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2392
9.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2392#FFFFFF#000000##FFFFFF
##5D23921.009.902.129.90
#FFFFFF9.901.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004295
Deuteranopia (green-blind)
#004390
Tritanopia (blue-blind)
#523F59
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5d2392;
/* rgb */ color: rgb(93, 35, 146);
/* oklch */ color: oklch(40.4% 0.171 303.1);
Tailwind
colors: {
  custom: {
    50: '#9064b3',
    500: '#5d2392',
    950: '#000000',
  },
}
SCSS
$custom: #5d2392;
$custom-light: #9064b3;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2392",
  "rgb": {
    "r": 93,
    "g": 35,
    "b": 146
  },
  "hsl": {
    "h": 271.351,
    "s": 61.326,
    "l": 35.49
  },
  "oklch": {
    "l": 0.40384,
    "c": 0.17099,
    "h": 303.1
  },
  "luminance": 0.05605
}

Semantic roles & 50–950 ramp

primary
#5D2392
secondary
#86BB55
accent
#E44390
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5D2392

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

Preview Lab → · Contrast checker → · Palette generator →

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