#5C2A72#5C2A72

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

Color values

HEX#5C2A72
RGBrgb(92, 42, 114)
HSLhsl(282, 46%, 31%)
HSVhsv(282, 63%, 45%)
CMYKcmyk(19.3%, 63.2%, 0%, 55.3%)
CIE-LABlab(27.15, 35.65, -32.18)
CIE-LCHlch(27.15, 48.03, 317.93°)
OKLaboklab(38.72% 0.0876 -0.0902)
OKLCHoklch(38.72% 0.126 314.1)
XYZxyz(8.2784, 5.1464, 16.4736)
Luminance0.0515 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2A72 #40722A
analogous
#382A72 #5C2A72 #722A64
triadic
#5C2A72 #725C2A #2A725C
tetradic
#5C2A72 #72382A #40722A #2A6472
square
#5C2A72 #72382A #40722A #2A6472
split-complementary
#5C2A72 #64722A #2A7238
monochromatic
#140919 #381A45 #5C2A72 #803A9F #A056C1

Accessibility & contrast

On white

10.35
#5C2A72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#5C2A72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2A72
10.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2A72#FFFFFF#000000##FFFFFF
##5C2A721.0010.352.0310.35
#FFFFFF10.351.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#123D74
Deuteranopia (green-blind)
#284170
Tritanopia (blue-blind)
#5A374A
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5c2a72;
/* rgb */ color: rgb(92, 42, 114);
/* oklch */ color: oklch(38.7% 0.126 314.1);
Tailwind
colors: {
  custom: {
    50: '#8c679b',
    500: '#5c2a72',
    950: '#000000',
  },
}
SCSS
$custom: #5c2a72;
$custom-light: #8c679b;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2a72",
  "rgb": {
    "r": 92,
    "g": 42,
    "b": 114
  },
  "hsl": {
    "h": 281.667,
    "s": 46.154,
    "l": 30.588
  },
  "oklch": {
    "l": 0.38723,
    "c": 0.12576,
    "h": 314.1
  },
  "luminance": 0.05146
}

Semantic roles & 50–950 ramp

primary
#5C2A72
secondary
#6CA454
accent
#D6527A
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C060E
muted
#7D7A7E

Preview Lab

Preview with #5C2A72

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

Preview Lab → · Contrast checker → · Palette generator →

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