#5C2491#5C2491

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

Color values

HEX#5C2491
RGBrgb(92, 36, 145)
HSLhsl(271, 60%, 35%)
HSVhsv(271, 75%, 57%)
CMYKcmyk(36.6%, 75.2%, 0%, 43.1%)
CIE-LABlab(28.33, 46.17, -49.72)
CIE-LCHlch(28.33, 67.85, 312.88°)
OKLaboklab(40.29% 0.0913 -0.1417)
OKLCHoklch(40.29% 0.169 302.8)
XYZxyz(10.1541, 5.5814, 27.3249)
Luminance0.0558 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2491 #599124
analogous
#262491 #5C2491 #91248F
triadic
#5C2491 #915C24 #24915C
tetradic
#5C2491 #912624 #599124 #248F91
square
#5C2491 #912624 #599124 #248F91
split-complementary
#5C2491 #8F9124 #249126
monochromatic
#1E0C2F #3D1860 #5C2491 #7B30C2 #9959D6

Accessibility & contrast

On white

9.92
#5C2491 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C2491
9.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2491#FFFFFF#000000##FFFFFF
##5C24911.009.922.129.92
#FFFFFF9.921.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004294
Deuteranopia (green-blind)
#00428F
Tritanopia (blue-blind)
#513F59
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5c2491;
/* rgb */ color: rgb(92, 36, 145);
/* oklch */ color: oklch(40.3% 0.169 302.8);
Tailwind
colors: {
  custom: {
    50: '#8f64b2',
    500: '#5c2491',
    950: '#000000',
  },
}
SCSS
$custom: #5c2491;
$custom-light: #8f64b2;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2491",
  "rgb": {
    "r": 92,
    "g": 36,
    "b": 145
  },
  "hsl": {
    "h": 270.826,
    "s": 60.221,
    "l": 35.49
  },
  "oklch": {
    "l": 0.40286,
    "c": 0.16856,
    "h": 302.8
  },
  "luminance": 0.05581
}

Semantic roles & 50–950 ramp

primary
#5C2491
secondary
#87BA56
accent
#E34492
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5C2491

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

Preview Lab → · Contrast checker → · Palette generator →

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