#5C145F#5C145F

#5C145F is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.8% C 0.138 H 326.3°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#5C145F
RGBrgb(92, 20, 95)
HSLhsl(298, 65%, 23%)
HSVhsv(298, 79%, 37%)
CMYKcmyk(3.2%, 78.9%, 0%, 62.7%)
CIE-LABlab(22.31, 41.71, -27.56)
CIE-LCHlch(22.31, 50.00, 326.55°)
OKLaboklab(34.85% 0.1148 -0.0766)
OKLCHoklch(34.85% 0.138 326.3)
XYZxyz(6.7292, 3.6023, 11.1651)
Luminance0.0360 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C145F #175F14
analogous
#36145F #5C145F #5F143C
triadic
#5C145F #5F5C14 #145F5C
tetradic
#5C145F #5F3614 #175F14 #143C5F
square
#5C145F #5F3614 #175F14 #143C5F
split-complementary
#5C145F #3C5F14 #145F36
monochromatic
#180519 #2B092C #5C145F #8D1F92 #BE29C4

Accessibility & contrast

On white

12.21
#5C145F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#5C145F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C145F
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C145F#FFFFFF#000000##FFFFFF
##5C145F1.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#013061
Deuteranopia (green-blind)
#26385D
Tritanopia (blue-blind)
#5F2138
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5c145f;
/* rgb */ color: rgb(92, 20, 95);
/* oklch */ color: oklch(34.8% 0.138 326.3);
Tailwind
colors: {
  custom: {
    50: '#8d5b8d',
    500: '#5c145f',
    950: '#000000',
  },
}
SCSS
$custom: #5c145f;
$custom-light: #8d5b8d;
$custom-dark: #000000;
JSON
{
  "hex": "#5c145f",
  "rgb": {
    "r": 92,
    "g": 20,
    "b": 95
  },
  "hsl": {
    "h": 297.6,
    "s": 65.217,
    "l": 22.549
  },
  "oklch": {
    "l": 0.34845,
    "c": 0.13798,
    "h": 326.3
  },
  "luminance": 0.03602
}

Semantic roles & 50–950 ramp

primary
#5C145F
secondary
#3C9738
accent
#E84046
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #5C145F

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

Preview Lab → · Contrast checker → · Palette generator →

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