#5F1752#5F1752

#5F1752 is a dark, vivid pink. Relative luminance 0.037; OKLCH L 34.8% C 0.125 H 336.2°. Best body text is #FFFFFF at 12.13:1 contrast (WCAG AA passes).

Color values

HEX#5F1752
RGBrgb(95, 23, 82)
HSLhsl(311, 61%, 23%)
HSVhsv(311, 76%, 37%)
CMYKcmyk(0%, 75.8%, 13.7%, 62.7%)
CIE-LABlab(22.50, 39.04, -18.57)
CIE-LCHlch(22.50, 43.23, 334.56°)
OKLaboklab(34.84% 0.1145 -0.0506)
OKLCHoklch(34.84% 0.125 336.2)
XYZxyz(6.5488, 3.6555, 8.3417)
Luminance0.0365 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1752 #175F24
analogous
#48175F #5F1752 #5F172E
triadic
#5F1752 #525F17 #17525F
tetradic
#5F1752 #5F4817 #175F24 #172E5F
square
#5F1752 #5F4817 #175F24 #172E5F
split-complementary
#5F1752 #2E5F17 #175F48
monochromatic
#190615 #2E0B27 #5F1752 #90237D #C22FA7

Accessibility & contrast

On white

12.13
#5F1752 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#5F1752 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1752
12.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1752#FFFFFF#000000##FFFFFF
##5F17521.0012.131.7312.13
#FFFFFF12.131.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#182F54
Deuteranopia (green-blind)
#313A50
Tritanopia (blue-blind)
#641C32
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5f1752;
/* rgb */ color: rgb(95, 23, 82);
/* oklch */ color: oklch(34.8% 0.125 336.2);
Tailwind
colors: {
  custom: {
    50: '#8f5c83',
    500: '#5f1752',
    950: '#000000',
  },
}
SCSS
$custom: #5f1752;
$custom-light: #8f5c83;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1752",
  "rgb": {
    "r": 95,
    "g": 23,
    "b": 82
  },
  "hsl": {
    "h": 310.833,
    "s": 61.017,
    "l": 23.137
  },
  "oklch": {
    "l": 0.34839,
    "c": 0.12512,
    "h": 336.2
  },
  "luminance": 0.03655
}

Semantic roles & 50–950 ramp

primary
#5F1752
secondary
#3C964C
accent
#E46144
background
#F9F5F8
surface
#F1E9EF
border
#CBC5CA
text
#0D040A
muted
#7E797C

Preview Lab

Preview with #5F1752

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

Preview Lab → · Contrast checker → · Palette generator →

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