#5C174E#5C174E

#5C174E is a dark, moderate pink. Relative luminance 0.034; OKLCH L 34.1% C 0.120 H 337.2°. Best body text is #FFFFFF at 12.44:1 contrast (WCAG AA passes).

Color values

HEX#5C174E
RGBrgb(92, 23, 78)
HSLhsl(312, 60%, 23%)
HSVhsv(312, 75%, 36%)
CMYKcmyk(0%, 75%, 15.2%, 63.9%)
CIE-LABlab(21.72, 37.54, -17.13)
CIE-LCHlch(21.72, 41.26, 335.48°)
OKLaboklab(34.1% 0.1105 -0.0465)
OKLCHoklch(34.1% 0.12 337.2)
XYZxyz(6.0953, 3.4387, 7.5490)
Luminance0.0344 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C174E #175C25
analogous
#48175C #5C174E #5C172B
triadic
#5C174E #4E5C17 #174E5C
tetradic
#5C174E #5C4817 #175C25 #172B5C
square
#5C174E #5C4817 #175C25 #172B5C
split-complementary
#5C174E #2B5C17 #175C48
monochromatic
#180615 #2B0B24 #5C174E #8D2378 #BE2FA1

Accessibility & contrast

On white

12.44
#5C174E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#5C174E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C174E
12.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C174E#FFFFFF#000000##FFFFFF
##5C174E1.0012.441.6912.44
#FFFFFF12.441.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#192D50
Deuteranopia (green-blind)
#30384C
Tritanopia (blue-blind)
#611B30
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #5c174e;
/* rgb */ color: rgb(92, 23, 78);
/* oklch */ color: oklch(34.1% 0.120 337.2);
Tailwind
colors: {
  custom: {
    50: '#8d5b7f',
    500: '#5c174e',
    950: '#000000',
  },
}
SCSS
$custom: #5c174e;
$custom-light: #8d5b7f;
$custom-dark: #000000;
JSON
{
  "hex": "#5c174e",
  "rgb": {
    "r": 92,
    "g": 23,
    "b": 78
  },
  "hsl": {
    "h": 312.174,
    "s": 60,
    "l": 22.549
  },
  "oklch": {
    "l": 0.34099,
    "c": 0.11991,
    "h": 337.2
  },
  "luminance": 0.03438
}

Semantic roles & 50–950 ramp

primary
#5C174E
secondary
#3C934E
accent
#E36545
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5C174E

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

Preview Lab → · Contrast checker → · Palette generator →

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