#5F154C#5F154C

#5F154C is a dark, vivid pink. Relative luminance 0.035; OKLCH L 34.3% C 0.123 H 340.2°. Best body text is #FFFFFF at 12.37:1 contrast (WCAG AA passes).

Color values

HEX#5F154C
RGBrgb(95, 21, 76)
HSLhsl(315, 64%, 23%)
HSVhsv(315, 78%, 37%)
CMYKcmyk(0%, 77.9%, 20%, 62.7%)
CIE-LABlab(21.91, 38.84, -15.43)
CIE-LCHlch(21.91, 41.80, 338.34°)
OKLaboklab(34.31% 0.1159 -0.0416)
OKLCHoklch(34.31% 0.123 340.2)
XYZxyz(6.2922, 3.4916, 7.1787)
Luminance0.0349 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F154C #155F28
analogous
#4D155F #5F154C #5F1527
triadic
#5F154C #4C5F15 #154C5F
tetradic
#5F154C #5F4D15 #155F28 #15275F
square
#5F154C #5F4D15 #155F28 #15275F
split-complementary
#5F154C #275F15 #155F4D
monochromatic
#190614 #2D0A24 #5F154C #912074 #C32B9C

Accessibility & contrast

On white

12.37
#5F154C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F154C
12.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F154C#FFFFFF#000000##FFFFFF
##5F154C1.0012.371.7012.37
#FFFFFF12.371.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A2D4E
Deuteranopia (green-blind)
#32394A
Tritanopia (blue-blind)
#65172E
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #5f154c;
/* rgb */ color: rgb(95, 21, 76);
/* oklch */ color: oklch(34.3% 0.123 340.2);
Tailwind
colors: {
  custom: {
    50: '#8f5b7e',
    500: '#5f154c',
    950: '#000000',
  },
}
SCSS
$custom: #5f154c;
$custom-light: #8f5b7e;
$custom-dark: #000000;
JSON
{
  "hex": "#5f154c",
  "rgb": {
    "r": 95,
    "g": 21,
    "b": 76
  },
  "hsl": {
    "h": 315.405,
    "s": 63.793,
    "l": 22.745
  },
  "oklch": {
    "l": 0.34314,
    "c": 0.12314,
    "h": 340.2
  },
  "luminance": 0.03491
}

Semantic roles & 50–950 ramp

primary
#5F154C
secondary
#3A9651
accent
#E76C41
background
#F9F5F7
surface
#F1E9EE
border
#CBC5C9
text
#0D040A
muted
#7E797C

Preview Lab

Preview with #5F154C

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

Preview Lab → · Contrast checker → · Palette generator →

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