#5C2197#5C2197

#5C2197 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.5% C 0.178 H 301.3°. Best body text is #FFFFFF at 9.91:1 contrast (WCAG AA passes).

Color values

HEX#5C2197
RGBrgb(92, 33, 151)
HSLhsl(270, 64%, 36%)
HSVhsv(270, 78%, 59%)
CMYKcmyk(39.1%, 78.1%, 0%, 40.8%)
CIE-LABlab(28.37, 48.97, -53.34)
CIE-LCHlch(28.37, 72.41, 312.55°)
OKLaboklab(40.47% 0.0926 -0.1523)
OKLCHoklch(40.47% 0.178 301.3)
XYZxyz(10.5420, 5.5973, 29.7971)
Luminance0.0560 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2197 #5C9721
analogous
#212197 #5C2197 #972197
triadic
#5C2197 #975C21 #21975C
tetradic
#5C2197 #972121 #5C9721 #219797
square
#5C2197 #972121 #5C9721 #219797
split-complementary
#5C2197 #979721 #219721
monochromatic
#1F0B33 #3D1665 #5C2197 #7B2CC9 #9958DA

Accessibility & contrast

On white

9.91
#5C2197 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C2197
9.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2197#FFFFFF#000000##FFFFFF
##5C21971.009.912.129.91
#FFFFFF9.911.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429A
Deuteranopia (green-blind)
#004295
Tritanopia (blue-blind)
#4F405B
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5c2197;
/* rgb */ color: rgb(92, 33, 151);
/* oklch */ color: oklch(40.5% 0.178 301.3);
Tailwind
colors: {
  custom: {
    50: '#9063b6',
    500: '#5c2197',
    950: '#000000',
  },
}
SCSS
$custom: #5c2197;
$custom-light: #9063b6;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2197",
  "rgb": {
    "r": 92,
    "g": 33,
    "b": 151
  },
  "hsl": {
    "h": 270,
    "s": 64.13,
    "l": 36.078
  },
  "oklch": {
    "l": 0.40472,
    "c": 0.17828,
    "h": 301.3
  },
  "luminance": 0.05597
}

Semantic roles & 50–950 ramp

primary
#5C2197
secondary
#8ABE55
accent
#E74194
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5C2197

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

Preview Lab → · Contrast checker → · Palette generator →

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