#5C147D#5C147D

#5C147D is a dark, vivid purple. Relative luminance 0.043; OKLCH L 37.1% C 0.165 H 311.9°. Best body text is #FFFFFF at 11.34:1 contrast (WCAG AA passes).

Color values

HEX#5C147D
RGBrgb(92, 20, 125)
HSLhsl(281, 72%, 28%)
HSVhsv(281, 84%, 49%)
CMYKcmyk(26.4%, 84%, 0%, 51%)
CIE-LABlab(24.50, 47.83, -43.44)
CIE-LCHlch(24.50, 64.61, 317.75°)
OKLaboklab(37.09% 0.1103 -0.1231)
OKLCHoklch(37.09% 0.165 311.9)
XYZxyz(8.3648, 4.2565, 19.7790)
Luminance0.0426 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C147D #357D14
analogous
#27147D #5C147D #7D1469
triadic
#5C147D #7D5C14 #147D5C
tetradic
#5C147D #7D2714 #357D14 #14697D
square
#5C147D #7D2714 #357D14 #14697D
split-complementary
#5C147D #697D14 #147D27
monochromatic
#13041A #350C48 #5C147D #831CB2 #A62EDE

Accessibility & contrast

On white

11.34
#5C147D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#5C147D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C147D
11.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C147D#FFFFFF#000000##FFFFFF
##5C147D1.0011.341.8511.34
#FFFFFF11.341.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003780
Deuteranopia (green-blind)
#003B7B
Tritanopia (blue-blind)
#582F4A
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5c147d;
/* rgb */ color: rgb(92, 20, 125);
/* oklch */ color: oklch(37.1% 0.165 311.9);
Tailwind
colors: {
  custom: {
    50: '#8e5ca3',
    500: '#5c147d',
    950: '#000000',
  },
}
SCSS
$custom: #5c147d;
$custom-light: #8e5ca3;
$custom-dark: #000000;
JSON
{
  "hex": "#5c147d",
  "rgb": {
    "r": 92,
    "g": 20,
    "b": 125
  },
  "hsl": {
    "h": 281.143,
    "s": 72.414,
    "l": 28.431
  },
  "oklch": {
    "l": 0.37087,
    "c": 0.16531,
    "h": 311.9
  },
  "luminance": 0.04256
}

Semantic roles & 50–950 ramp

primary
#5C147D
secondary
#60B23A
accent
#EF3972
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D040F
muted
#7E797F

Preview Lab

Preview with #5C147D

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

Preview Lab → · Contrast checker → · Palette generator →

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