#5C2172#5C2172

#5C2172 is a dark, vivid purple. Relative luminance 0.046; OKLCH L 37.5% C 0.139 H 315.4°. Best body text is #FFFFFF at 10.96:1 contrast (WCAG AA passes).

Color values

HEX#5C2172
RGBrgb(92, 33, 114)
HSLhsl(284, 55%, 29%)
HSVhsv(284, 71%, 45%)
CMYKcmyk(19.3%, 71.1%, 0%, 55.3%)
CIE-LABlab(25.50, 40.20, -34.82)
CIE-LCHlch(25.50, 53.18, 319.10°)
OKLaboklab(37.53% 0.0992 -0.0979)
OKLCHoklch(37.53% 0.139 315.4)
XYZxyz(7.9943, 4.5782, 16.3789)
Luminance0.0458 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2172 #377221
analogous
#342172 #5C2172 #722160
triadic
#5C2172 #725C21 #21725C
tetradic
#5C2172 #723421 #377221 #216072
square
#5C2172 #723421 #377221 #216072
split-complementary
#5C2172 #607221 #217234
monochromatic
#130718 #361343 #5C2172 #822FA1 #A544C9

Accessibility & contrast

On white

10.96
#5C2172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#5C2172 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2172
10.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2172#FFFFFF#000000##FFFFFF
##5C21721.0010.961.9210.96
#FFFFFF10.961.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003974
Deuteranopia (green-blind)
#1F3E70
Tritanopia (blue-blind)
#5A3147
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5c2172;
/* rgb */ color: rgb(92, 33, 114);
/* oklch */ color: oklch(37.5% 0.139 315.4);
Tailwind
colors: {
  custom: {
    50: '#8d629b',
    500: '#5c2172',
    950: '#000000',
  },
}
SCSS
$custom: #5c2172;
$custom-light: #8d629b;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2172",
  "rgb": {
    "r": 92,
    "g": 33,
    "b": 114
  },
  "hsl": {
    "h": 283.704,
    "s": 55.102,
    "l": 28.824
  },
  "oklch": {
    "l": 0.37531,
    "c": 0.13939,
    "h": 315.4
  },
  "luminance": 0.04578
}

Semantic roles & 50–950 ramp

primary
#5C2172
secondary
#62A549
accent
#DE4972
background
#F8F5F9
surface
#F0EAF2
border
#CBC6CC
text
#0C050E
muted
#7D797E

Preview Lab

Preview with #5C2172

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

Preview Lab → · Contrast checker → · Palette generator →

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