#5D2391#5D2391

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

Color values

HEX#5D2391
RGBrgb(93, 35, 145)
HSLhsl(272, 61%, 35%)
HSVhsv(272, 76%, 57%)
CMYKcmyk(35.9%, 75.9%, 0%, 43.1%)
CIE-LABlab(28.31, 46.81, -49.75)
CIE-LCHlch(28.31, 68.31, 313.26°)
OKLaboklab(40.3% 0.0937 -0.1417)
OKLCHoklch(40.3% 0.17 303.5)
XYZxyz(10.2249, 5.5736, 27.3197)
Luminance0.0557 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2391 #579123
analogous
#262391 #5D2391 #91238E
triadic
#5D2391 #915D23 #23915D
tetradic
#5D2391 #912623 #579123 #238E91
square
#5D2391 #912623 #579123 #238E91
split-complementary
#5D2391 #8E9123 #239126
monochromatic
#1E0B2E #3D1760 #5D2391 #7D2FC2 #9B58D7

Accessibility & contrast

On white

9.93
#5D2391 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D2391
9.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2391#FFFFFF#000000##FFFFFF
##5D23911.009.932.119.93
#FFFFFF9.931.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004294
Deuteranopia (green-blind)
#00438F
Tritanopia (blue-blind)
#533E58
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5d2391;
/* rgb */ color: rgb(93, 35, 145);
/* oklch */ color: oklch(40.3% 0.170 303.5);
Tailwind
colors: {
  custom: {
    50: '#9064b2',
    500: '#5d2391',
    950: '#000000',
  },
}
SCSS
$custom: #5d2391;
$custom-light: #9064b2;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2391",
  "rgb": {
    "r": 93,
    "g": 35,
    "b": 145
  },
  "hsl": {
    "h": 271.636,
    "s": 61.111,
    "l": 35.294
  },
  "oklch": {
    "l": 0.40301,
    "c": 0.16993,
    "h": 303.5
  },
  "luminance": 0.05574
}

Semantic roles & 50–950 ramp

primary
#5D2391
secondary
#85BB55
accent
#E44490
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5D2391

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

Preview Lab → · Contrast checker → · Palette generator →

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