#5C2872#5C2872

#5C2872 is a dark, vivid purple. Relative luminance 0.050; OKLCH L 38.4% C 0.129 H 314.5°. Best body text is #FFFFFF at 10.49:1 contrast (WCAG AA passes).

Color values

HEX#5C2872
RGBrgb(92, 40, 114)
HSLhsl(282, 48%, 30%)
HSVhsv(282, 65%, 45%)
CMYKcmyk(19.3%, 64.9%, 0%, 55.3%)
CIE-LABlab(26.76, 36.72, -32.80)
CIE-LCHlch(26.76, 49.23, 318.22°)
OKLaboklab(38.44% 0.0903 -0.0921)
OKLCHoklch(38.44% 0.129 314.5)
XYZxyz(8.2092, 5.0081, 16.4505)
Luminance0.0501 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2872 #3E7228
analogous
#372872 #5C2872 #722863
triadic
#5C2872 #725C28 #28725C
tetradic
#5C2872 #723728 #3E7228 #286372
square
#5C2872 #723728 #3E7228 #286372
split-complementary
#5C2872 #637228 #287237
monochromatic
#130817 #371845 #5C2872 #81389F #A152C2

Accessibility & contrast

On white

10.49
#5C2872 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#5C2872 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2872
10.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2872#FFFFFF#000000##FFFFFF
##5C28721.0010.492.0010.49
#FFFFFF10.491.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D3C74
Deuteranopia (green-blind)
#264170
Tritanopia (blue-blind)
#5A3549
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5c2872;
/* rgb */ color: rgb(92, 40, 114);
/* oklch */ color: oklch(38.4% 0.129 314.5);
Tailwind
colors: {
  custom: {
    50: '#8d659b',
    500: '#5c2872',
    950: '#000000',
  },
}
SCSS
$custom: #5c2872;
$custom-light: #8d659b;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2872",
  "rgb": {
    "r": 92,
    "g": 40,
    "b": 114
  },
  "hsl": {
    "h": 282.162,
    "s": 48.052,
    "l": 30.196
  },
  "oklch": {
    "l": 0.3844,
    "c": 0.12895,
    "h": 314.5
  },
  "luminance": 0.05008
}

Semantic roles & 50–950 ramp

primary
#5C2872
secondary
#6AA452
accent
#D85078
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C060E
muted
#7D7A7E

Preview Lab

Preview with #5C2872

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

Preview Lab → · Contrast checker → · Palette generator →

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