#5E174F#5E174F

#5E174F is a dark, vivid pink. Relative luminance 0.036; OKLCH L 34.5% C 0.122 H 337.7°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#5E174F
RGBrgb(94, 23, 79)
HSLhsl(313, 61%, 23%)
HSVhsv(313, 76%, 37%)
CMYKcmyk(0%, 75.5%, 16%, 63.1%)
CIE-LABlab(22.15, 38.27, -17.10)
CIE-LCHlch(22.15, 41.91, 335.92°)
OKLaboklab(34.5% 0.1129 -0.0464)
OKLCHoklch(34.5% 0.122 337.7)
XYZxyz(6.3339, 3.5576, 7.7487)
Luminance0.0356 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E174F #175E26
analogous
#49175E #5E174F #5E172B
triadic
#5E174F #4F5E17 #174F5E
tetradic
#5E174F #5E4917 #175E26 #172B5E
square
#5E174F #5E4917 #175E26 #172B5E
split-complementary
#5E174F #2B5E17 #175E49
monochromatic
#190615 #2D0B26 #5E174F #8F2378 #C02FA2

Accessibility & contrast

On white

12.27
#5E174F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E174F
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E174F#FFFFFF#000000##FFFFFF
##5E174F1.0012.271.7112.27
#FFFFFF12.271.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A2E51
Deuteranopia (green-blind)
#31394D
Tritanopia (blue-blind)
#631B31
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5e174f;
/* rgb */ color: rgb(94, 23, 79);
/* oklch */ color: oklch(34.5% 0.122 337.7);
Tailwind
colors: {
  custom: {
    50: '#8e5b80',
    500: '#5e174f',
    950: '#000000',
  },
}
SCSS
$custom: #5e174f;
$custom-light: #8e5b80;
$custom-dark: #000000;
JSON
{
  "hex": "#5e174f",
  "rgb": {
    "r": 94,
    "g": 23,
    "b": 79
  },
  "hsl": {
    "h": 312.676,
    "s": 60.684,
    "l": 22.941
  },
  "oklch": {
    "l": 0.345,
    "c": 0.12209,
    "h": 337.7
  },
  "luminance": 0.03557
}

Semantic roles & 50–950 ramp

primary
#5E174F
secondary
#3C954F
accent
#E46644
background
#F9F5F7
surface
#F1E9EE
border
#CBC5C9
text
#0D040A
muted
#7E797C

Preview Lab

Preview with #5E174F

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

Preview Lab → · Contrast checker → · Palette generator →

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