#5C2591#5C2591

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

Color values

HEX#5C2591
RGBrgb(92, 37, 145)
HSLhsl(271, 59%, 36%)
HSVhsv(271, 74%, 57%)
CMYKcmyk(36.6%, 74.5%, 0%, 43.1%)
CIE-LABlab(28.49, 45.71, -49.46)
CIE-LCHlch(28.49, 67.34, 312.74°)
OKLaboklab(40.4% 0.0903 -0.1409)
OKLCHoklch(40.4% 0.167 302.6)
XYZxyz(10.1848, 5.6428, 27.3352)
Luminance0.0564 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2591 #5A9125
analogous
#262591 #5C2591 #912590
triadic
#5C2591 #915C25 #25915C
tetradic
#5C2591 #912625 #5A9125 #259091
square
#5C2591 #912625 #5A9125 #259091
split-complementary
#5C2591 #909125 #259126
monochromatic
#1E0C2F #3D1960 #5C2591 #7B31C2 #995BD5

Accessibility & contrast

On white

9.87
#5C2591 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#5C2591 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2591
9.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2591#FFFFFF#000000##FFFFFF
##5C25911.009.872.139.87
#FFFFFF9.871.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.871.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5c2591;
/* rgb */ color: rgb(92, 37, 145);
/* oklch */ color: oklch(40.4% 0.167 302.6);
Tailwind
colors: {
  custom: {
    50: '#8f65b2',
    500: '#5c2591',
    950: '#000000',
  },
}
SCSS
$custom: #5c2591;
$custom-light: #8f65b2;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2591",
  "rgb": {
    "r": 92,
    "g": 37,
    "b": 145
  },
  "hsl": {
    "h": 270.556,
    "s": 59.341,
    "l": 35.686
  },
  "oklch": {
    "l": 0.404,
    "c": 0.16737,
    "h": 302.6
  },
  "luminance": 0.05643
}

Semantic roles & 50–950 ramp

primary
#5C2591
secondary
#88BA58
accent
#E34592
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5C2591

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

Preview Lab → · Contrast checker → · Palette generator →

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