#5C2173#5C2173

#5C2173 is a dark, vivid purple. Relative luminance 0.046; OKLCH L 37.6% C 0.140 H 314.9°. Best body text is #FFFFFF at 10.94:1 contrast (WCAG AA passes).

Color values

HEX#5C2173
RGBrgb(92, 33, 115)
HSLhsl(283, 55%, 29%)
HSVhsv(283, 71%, 45%)
CMYKcmyk(20%, 71.3%, 0%, 54.9%)
CIE-LABlab(25.57, 40.43, -35.35)
CIE-LCHlch(25.57, 53.70, 318.83°)
OKLaboklab(37.6% 0.0991 -0.0995)
OKLCHoklch(37.6% 0.14 314.9)
XYZxyz(8.0515, 4.6011, 16.6803)
Luminance0.0460 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2173 #387321
analogous
#332173 #5C2173 #732161
triadic
#5C2173 #735C21 #21735C
tetradic
#5C2173 #733321 #387321 #216173
square
#5C2173 #733321 #387321 #216173
split-complementary
#5C2173 #617321 #217333
monochromatic
#130718 #361343 #5C2173 #822FA3 #A445CA

Accessibility & contrast

On white

10.94
#5C2173 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C2173
10.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2173#FFFFFF#000000##FFFFFF
##5C21731.0010.941.9210.94
#FFFFFF10.941.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003975
Deuteranopia (green-blind)
#1E3E71
Tritanopia (blue-blind)
#5A3147
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5c2173;
/* rgb */ color: rgb(92, 33, 115);
/* oklch */ color: oklch(37.6% 0.140 314.9);
Tailwind
colors: {
  custom: {
    50: '#8d629c',
    500: '#5c2173',
    950: '#000000',
  },
}
SCSS
$custom: #5c2173;
$custom-light: #8d629c;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2173",
  "rgb": {
    "r": 92,
    "g": 33,
    "b": 115
  },
  "hsl": {
    "h": 283.171,
    "s": 55.405,
    "l": 29.02
  },
  "oklch": {
    "l": 0.37603,
    "c": 0.14042,
    "h": 314.9
  },
  "luminance": 0.04601
}

Semantic roles & 50–950 ramp

primary
#5C2173
secondary
#63A649
accent
#DF4973
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C050E
muted
#7D7A7E

Preview Lab

Preview with #5C2173

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

Preview Lab → · Contrast checker → · Palette generator →

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