#5F154E#5F154E

#5F154E is a dark, vivid pink. Relative luminance 0.035; OKLCH L 34.4% C 0.125 H 338.8°. Best body text is #FFFFFF at 12.33:1 contrast (WCAG AA passes).

Color values

HEX#5F154E
RGBrgb(95, 21, 78)
HSLhsl(314, 64%, 23%)
HSVhsv(314, 78%, 37%)
CMYKcmyk(0%, 77.9%, 17.9%, 62.7%)
CIE-LABlab(22.02, 39.16, -16.62)
CIE-LCHlch(22.02, 42.54, 337.00°)
OKLaboklab(34.42% 0.1162 -0.045)
OKLCHoklch(34.42% 0.125 338.8)
XYZxyz(6.3628, 3.5199, 7.5506)
Luminance0.0352 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F154E #155F26
analogous
#4B155F #5F154E #5F1529
triadic
#5F154E #4E5F15 #154E5F
tetradic
#5F154E #5F4B15 #155F26 #15295F
square
#5F154E #5F4B15 #155F26 #15295F
split-complementary
#5F154E #295F15 #155F4B
monochromatic
#190615 #2D0A25 #5F154E #912077 #C32BA0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5F154E#FFFFFF#000000##FFFFFF
##5F154E1.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)
#192D50
Deuteranopia (green-blind)
#31394C
Tritanopia (blue-blind)
#65182F
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5f154e;
/* rgb */ color: rgb(95, 21, 78);
/* oklch */ color: oklch(34.4% 0.125 338.8);
Tailwind
colors: {
  custom: {
    50: '#8f5b7f',
    500: '#5f154e',
    950: '#000000',
  },
}
SCSS
$custom: #5f154e;
$custom-light: #8f5b7f;
$custom-dark: #000000;
JSON
{
  "hex": "#5f154e",
  "rgb": {
    "r": 95,
    "g": 21,
    "b": 78
  },
  "hsl": {
    "h": 313.784,
    "s": 63.793,
    "l": 22.745
  },
  "oklch": {
    "l": 0.34422,
    "c": 0.12461,
    "h": 338.8
  },
  "luminance": 0.03519
}

Semantic roles & 50–950 ramp

primary
#5F154E
secondary
#3A964F
accent
#E76741
background
#F9F5F7
surface
#F1E9EE
border
#CBC5C9
text
#0D040A
muted
#7E797C

Preview Lab

Preview with #5F154E

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

Preview Lab → · Contrast checker → · Palette generator →

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