#5C145C#5C145C

#5C145C is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.6% C 0.135 H 328.0°. Best body text is #FFFFFF at 12.28:1 contrast (WCAG AA passes).

Color values

HEX#5C145C
RGBrgb(92, 20, 92)
HSLhsl(300, 64%, 22%)
HSVhsv(300, 78%, 36%)
CMYKcmyk(0%, 78.3%, 0%, 63.9%)
CIE-LABlab(22.12, 41.16, -25.88)
CIE-LCHlch(22.12, 48.61, 327.84°)
OKLaboklab(34.65% 0.1148 -0.0717)
OKLCHoklch(34.65% 0.135 328)
XYZxyz(6.5955, 3.5488, 10.4607)
Luminance0.0355 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C145C #145C14
analogous
#38145C #5C145C #5C1438
triadic
#5C145C #5C5C14 #145C5C
tetradic
#5C145C #5C3814 #145C14 #14385C
square
#5C145C #5C3814 #145C14 #14385C
split-complementary
#5C145C #385C14 #145C38
monochromatic
#190519 #2A092A #5C145C #8E1F8E #C12AC1

Accessibility & contrast

On white

12.28
#5C145C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#5C145C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C145C
12.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C145C#FFFFFF#000000##FFFFFF
##5C145C1.0012.281.7112.28
#FFFFFF12.281.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#062F5E
Deuteranopia (green-blind)
#28385A
Tritanopia (blue-blind)
#5F1F37
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5c145c;
/* rgb */ color: rgb(92, 20, 92);
/* oklch */ color: oklch(34.6% 0.135 328.0);
Tailwind
colors: {
  custom: {
    50: '#8d5a8a',
    500: '#5c145c',
    950: '#000000',
  },
}
SCSS
$custom: #5c145c;
$custom-light: #8d5a8a;
$custom-dark: #000000;
JSON
{
  "hex": "#5c145c",
  "rgb": {
    "r": 92,
    "g": 20,
    "b": 92
  },
  "hsl": {
    "h": 300,
    "s": 64.286,
    "l": 21.961
  },
  "oklch": {
    "l": 0.34647,
    "c": 0.13538,
    "h": 328
  },
  "luminance": 0.03548
}

Semantic roles & 50–950 ramp

primary
#5C145C
secondary
#389438
accent
#E74141
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #5C145C

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

Preview Lab → · Contrast checker → · Palette generator →

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