#5C2A71#5C2A71

#5C2A71 is a dark, vivid purple. Relative luminance 0.051; OKLCH L 38.7% C 0.125 H 314.6°. Best body text is #FFFFFF at 10.37:1 contrast (WCAG AA passes).

Color values

HEX#5C2A71
RGBrgb(92, 42, 113)
HSLhsl(282, 46%, 30%)
HSVhsv(282, 63%, 44%)
CMYKcmyk(18.6%, 62.8%, 0%, 55.7%)
CIE-LABlab(27.08, 35.42, -31.64)
CIE-LCHlch(27.08, 47.49, 318.22°)
OKLaboklab(38.66% 0.0876 -0.0887)
OKLCHoklch(38.66% 0.125 314.6)
XYZxyz(8.2217, 5.1238, 16.1755)
Luminance0.0512 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2A71 #3F712A
analogous
#392A71 #5C2A71 #712A62
triadic
#5C2A71 #715C2A #2A715C
tetradic
#5C2A71 #71392A #3F712A #2A6271
square
#5C2A71 #71392A #3F712A #2A6271
split-complementary
#5C2A71 #62712A #2A7139
monochromatic
#130918 #381944 #5C2A71 #803B9E #A055C0

Accessibility & contrast

On white

10.37
#5C2A71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#5C2A71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2A71
10.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2A71#FFFFFF#000000##FFFFFF
##5C2A711.0010.372.0210.37
#FFFFFF10.371.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#143D73
Deuteranopia (green-blind)
#28416F
Tritanopia (blue-blind)
#5A3649
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5c2a71;
/* rgb */ color: rgb(92, 42, 113);
/* oklch */ color: oklch(38.7% 0.125 314.6);
Tailwind
colors: {
  custom: {
    50: '#8c679a',
    500: '#5c2a71',
    950: '#000000',
  },
}
SCSS
$custom: #5c2a71;
$custom-light: #8c679a;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2a71",
  "rgb": {
    "r": 92,
    "g": 42,
    "b": 113
  },
  "hsl": {
    "h": 282.254,
    "s": 45.806,
    "l": 30.392
  },
  "oklch": {
    "l": 0.38656,
    "c": 0.12462,
    "h": 314.6
  },
  "luminance": 0.05123
}

Semantic roles & 50–950 ramp

primary
#5C2A71
secondary
#6BA354
accent
#D55279
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C060E
muted
#7D7A7E

Preview Lab

Preview with #5C2A71

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

Preview Lab → · Contrast checker → · Palette generator →

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