#5C145D#5C145D

#5C145D is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.7% C 0.136 H 327.4°. Best body text is #FFFFFF at 12.26:1 contrast (WCAG AA passes).

Color values

HEX#5C145D
RGBrgb(92, 20, 93)
HSLhsl(299, 65%, 22%)
HSVhsv(299, 78%, 36%)
CMYKcmyk(1.1%, 78.5%, 0%, 63.5%)
CIE-LABlab(22.18, 41.34, -26.44)
CIE-LCHlch(22.18, 49.07, 327.40°)
OKLaboklab(34.71% 0.1148 -0.0733)
OKLCHoklch(34.71% 0.136 327.4)
XYZxyz(6.6395, 3.5664, 10.6925)
Luminance0.0357 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C145D #155D14
analogous
#38145D #5C145D #5D143A
triadic
#5C145D #5D5C14 #145D5C
tetradic
#5C145D #5D3814 #155D14 #143A5D
square
#5C145D #5D3814 #155D14 #143A5D
split-complementary
#5C145D #3A5D14 #145D38
monochromatic
#190519 #2A092B #5C145D #8E1F8F #C02AC2

Accessibility & contrast

On white

12.26
#5C145D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C145D
12.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C145D#FFFFFF#000000##FFFFFF
##5C145D1.0012.261.7112.26
#FFFFFF12.261.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#042F5F
Deuteranopia (green-blind)
#27385B
Tritanopia (blue-blind)
#5F2037
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5c145d;
/* rgb */ color: rgb(92, 20, 93);
/* oklch */ color: oklch(34.7% 0.136 327.4);
Tailwind
colors: {
  custom: {
    50: '#8d5a8b',
    500: '#5c145d',
    950: '#000000',
  },
}
SCSS
$custom: #5c145d;
$custom-light: #8d5a8b;
$custom-dark: #000000;
JSON
{
  "hex": "#5c145d",
  "rgb": {
    "r": 92,
    "g": 20,
    "b": 93
  },
  "hsl": {
    "h": 299.178,
    "s": 64.602,
    "l": 22.157
  },
  "oklch": {
    "l": 0.34713,
    "c": 0.13624,
    "h": 327.4
  },
  "luminance": 0.03566
}

Semantic roles & 50–950 ramp

primary
#5C145D
secondary
#399538
accent
#E84043
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #5C145D

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

Preview Lab → · Contrast checker → · Palette generator →

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