#5C2196#5C2196

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

Color values

HEX#5C2196
RGBrgb(92, 33, 150)
HSLhsl(270, 64%, 36%)
HSVhsv(270, 78%, 59%)
CMYKcmyk(38.7%, 78%, 0%, 41.2%)
CIE-LABlab(28.29, 48.72, -52.87)
CIE-LCHlch(28.29, 71.90, 312.66°)
OKLaboklab(40.39% 0.0929 -0.1509)
OKLCHoklch(40.39% 0.177 301.6)
XYZxyz(10.4612, 5.5650, 29.3713)
Luminance0.0556 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2196 #5B9621
analogous
#212196 #5C2196 #962195
triadic
#5C2196 #965C21 #21965C
tetradic
#5C2196 #962121 #5B9621 #219596
square
#5C2196 #962121 #5B9621 #219596
split-complementary
#5C2196 #959621 #219621
monochromatic
#1E0B32 #3D1664 #5C2196 #7B2CC8 #9957DA

Accessibility & contrast

On white

9.94
#5C2196 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C2196
9.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2196#FFFFFF#000000##FFFFFF
##5C21961.009.942.119.94
#FFFFFF9.941.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004299
Deuteranopia (green-blind)
#004294
Tritanopia (blue-blind)
#4F405B
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5c2196;
/* rgb */ color: rgb(92, 33, 150);
/* oklch */ color: oklch(40.4% 0.177 301.6);
Tailwind
colors: {
  custom: {
    50: '#9063b6',
    500: '#5c2196',
    950: '#000000',
  },
}
SCSS
$custom: #5c2196;
$custom-light: #9063b6;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2196",
  "rgb": {
    "r": 92,
    "g": 33,
    "b": 150
  },
  "hsl": {
    "h": 270.256,
    "s": 63.934,
    "l": 35.882
  },
  "oklch": {
    "l": 0.40385,
    "c": 0.17722,
    "h": 301.6
  },
  "luminance": 0.05565
}

Semantic roles & 50–950 ramp

primary
#5C2196
secondary
#89BE55
accent
#E74193
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5C2196

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

Preview Lab → · Contrast checker → · Palette generator →

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