#5C145A#5C145A

#5C145A is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.5% C 0.134 H 329.2°. Best body text is #FFFFFF at 12.33:1 contrast (WCAG AA passes).

Color values

HEX#5C145A
RGBrgb(92, 20, 90)
HSLhsl(302, 64%, 22%)
HSVhsv(302, 78%, 36%)
CMYKcmyk(0%, 78.3%, 2.2%, 63.9%)
CIE-LABlab(22.00, 40.79, -24.74)
CIE-LCHlch(22.00, 47.71, 328.76°)
OKLaboklab(34.52% 0.1148 -0.0684)
OKLCHoklch(34.52% 0.134 329.2)
XYZxyz(6.5092, 3.5143, 10.0064)
Luminance0.0351 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C145A #145C16
analogous
#3A145C #5C145A #5C1436
triadic
#5C145A #5A5C14 #145A5C
tetradic
#5C145A #5C3A14 #145C16 #14365C
square
#5C145A #5C3A14 #145C16 #14365C
split-complementary
#5C145A #365C14 #145C3A
monochromatic
#190519 #2A0929 #5C145A #8E1F8B #C12ABC

Accessibility & contrast

On white

12.33
#5C145A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#5C145A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C145A
12.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C145A#FFFFFF#000000##FFFFFF
##5C145A1.0012.331.7012.33
#FFFFFF12.331.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#092F5C
Deuteranopia (green-blind)
#293858
Tritanopia (blue-blind)
#5F1E36
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5c145a;
/* rgb */ color: rgb(92, 20, 90);
/* oklch */ color: oklch(34.5% 0.134 329.2);
Tailwind
colors: {
  custom: {
    50: '#8d5a89',
    500: '#5c145a',
    950: '#000000',
  },
}
SCSS
$custom: #5c145a;
$custom-light: #8d5a89;
$custom-dark: #000000;
JSON
{
  "hex": "#5c145a",
  "rgb": {
    "r": 92,
    "g": 20,
    "b": 90
  },
  "hsl": {
    "h": 301.667,
    "s": 64.286,
    "l": 21.961
  },
  "oklch": {
    "l": 0.34519,
    "c": 0.13367,
    "h": 329.2
  },
  "luminance": 0.03514
}

Semantic roles & 50–950 ramp

primary
#5C145A
secondary
#38943B
accent
#E74541
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040B
muted
#7D797C

Preview Lab

Preview with #5C145A

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

Preview Lab → · Contrast checker → · Palette generator →

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