#5C145B#5C145B

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

Color values

HEX#5C145B
RGBrgb(92, 20, 91)
HSLhsl(301, 64%, 22%)
HSVhsv(301, 78%, 36%)
CMYKcmyk(0%, 78.3%, 1.1%, 63.9%)
CIE-LABlab(22.06, 40.97, -25.31)
CIE-LCHlch(22.06, 48.16, 328.29°)
OKLaboklab(34.58% 0.1148 -0.0701)
OKLCHoklch(34.58% 0.135 328.6)
XYZxyz(6.5520, 3.5314, 10.2320)
Luminance0.0353 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C145B #145C15
analogous
#39145C #5C145B #5C1437
triadic
#5C145B #5B5C14 #145B5C
tetradic
#5C145B #5C3914 #145C15 #14375C
square
#5C145B #5C3914 #145C15 #14375C
split-complementary
#5C145B #375C14 #145C39
monochromatic
#190519 #2A0929 #5C145B #8E1F8D #C12ABE

Accessibility & contrast

On white

12.31
#5C145B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C145B
12.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C145B#FFFFFF#000000##FFFFFF
##5C145B1.0012.311.7112.31
#FFFFFF12.311.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#072F5D
Deuteranopia (green-blind)
#283859
Tritanopia (blue-blind)
#5F1F36
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5c145b;
/* rgb */ color: rgb(92, 20, 91);
/* oklch */ color: oklch(34.6% 0.135 328.6);
Tailwind
colors: {
  custom: {
    50: '#8d5a8a',
    500: '#5c145b',
    950: '#000000',
  },
}
SCSS
$custom: #5c145b;
$custom-light: #8d5a8a;
$custom-dark: #000000;
JSON
{
  "hex": "#5c145b",
  "rgb": {
    "r": 92,
    "g": 20,
    "b": 91
  },
  "hsl": {
    "h": 300.833,
    "s": 64.286,
    "l": 21.961
  },
  "oklch": {
    "l": 0.34583,
    "c": 0.13452,
    "h": 328.6
  },
  "luminance": 0.03531
}

Semantic roles & 50–950 ramp

primary
#5C145B
secondary
#389439
accent
#E74341
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040B
muted
#7D797C

Preview Lab

Preview with #5C145B

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

Preview Lab → · Contrast checker → · Palette generator →

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