#5F1A4E#5F1A4E

#5F1A4E is a dark, moderate pink. Relative luminance 0.037; OKLCH L 34.9% C 0.118 H 339.2°. Best body text is #FFFFFF at 12.04:1 contrast (WCAG AA passes).

Color values

HEX#5F1A4E
RGBrgb(95, 26, 78)
HSLhsl(315, 57%, 24%)
HSVhsv(315, 73%, 37%)
CMYKcmyk(0%, 72.6%, 17.9%, 62.7%)
CIE-LABlab(22.73, 37.15, -15.51)
CIE-LCHlch(22.73, 40.26, 337.33°)
OKLaboklab(34.94% 0.1102 -0.0419)
OKLCHoklch(34.94% 0.118 339.2)
XYZxyz(6.4640, 3.7223, 7.5843)
Luminance0.0372 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1A4E #1A5F2B
analogous
#4D1A5F #5F1A4E #5F1A2B
triadic
#5F1A4E #4E5F1A #1A4E5F
tetradic
#5F1A4E #5F4D1A #1A5F2B #1A2B5F
square
#5F1A4E #5F4D1A #1A5F2B #1A2B5F
split-complementary
#5F1A4E #2B5F1A #1A5F4D
monochromatic
#180714 #2F0D27 #5F1A4E #8F2775 #BF349D

Accessibility & contrast

On white

12.04
#5F1A4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#5F1A4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1A4E
12.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1A4E#FFFFFF#000000##FFFFFF
##5F1A4E1.0012.041.7412.04
#FFFFFF12.041.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E2F50
Deuteranopia (green-blind)
#333A4C
Tritanopia (blue-blind)
#651C31
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5f1a4e;
/* rgb */ color: rgb(95, 26, 78);
/* oklch */ color: oklch(34.9% 0.118 339.2);
Tailwind
colors: {
  custom: {
    50: '#8f5d7f',
    500: '#5f1a4e',
    950: '#000000',
  },
}
SCSS
$custom: #5f1a4e;
$custom-light: #8f5d7f;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1a4e",
  "rgb": {
    "r": 95,
    "g": 26,
    "b": 78
  },
  "hsl": {
    "h": 314.783,
    "s": 57.025,
    "l": 23.725
  },
  "oklch": {
    "l": 0.34941,
    "c": 0.11785,
    "h": 339.2
  },
  "luminance": 0.03722
}

Semantic roles & 50–950 ramp

primary
#5F1A4E
secondary
#409555
accent
#E06D48
background
#F9F5F7
surface
#F1E9EE
border
#CBC5C9
text
#0D040A
muted
#7E797C

Preview Lab

Preview with #5F1A4E

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

Preview Lab → · Contrast checker → · Palette generator →

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