#5C2391#5C2391

#5C2391 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.2% C 0.170 H 302.9°. Best body text is #FFFFFF at 9.98:1 contrast (WCAG AA passes).

Color values

HEX#5C2391
RGBrgb(92, 35, 145)
HSLhsl(271, 61%, 35%)
HSVhsv(271, 76%, 57%)
CMYKcmyk(36.6%, 75.9%, 0%, 43.1%)
CIE-LABlab(28.17, 46.62, -49.98)
CIE-LCHlch(28.17, 68.35, 313.01°)
OKLaboklab(40.17% 0.0923 -0.1424)
OKLCHoklch(40.17% 0.17 302.9)
XYZxyz(10.1243, 5.5217, 27.3150)
Luminance0.0552 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2391 #589123
analogous
#252391 #5C2391 #91238F
triadic
#5C2391 #915C23 #23915C
tetradic
#5C2391 #912523 #589123 #238F91
square
#5C2391 #912523 #589123 #238F91
split-complementary
#5C2391 #8F9123 #239125
monochromatic
#1D0B2E #3D1760 #5C2391 #7B2FC2 #9A58D7

Accessibility & contrast

On white

9.98
#5C2391 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#5C2391 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2391
9.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2391#FFFFFF#000000##FFFFFF
##5C23911.009.982.109.98
#FFFFFF9.981.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004194
Deuteranopia (green-blind)
#00428F
Tritanopia (blue-blind)
#513F58
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5c2391;
/* rgb */ color: rgb(92, 35, 145);
/* oklch */ color: oklch(40.2% 0.170 302.9);
Tailwind
colors: {
  custom: {
    50: '#8f64b2',
    500: '#5c2391',
    950: '#000000',
  },
}
SCSS
$custom: #5c2391;
$custom-light: #8f64b2;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2391",
  "rgb": {
    "r": 92,
    "g": 35,
    "b": 145
  },
  "hsl": {
    "h": 271.091,
    "s": 61.111,
    "l": 35.294
  },
  "oklch": {
    "l": 0.40174,
    "c": 0.16971,
    "h": 302.9
  },
  "luminance": 0.05522
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5C2391

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

Preview Lab → · Contrast checker → · Palette generator →

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