#5F1151#5F1151

#5F1151 is a dark, vivid pink. Relative luminance 0.034; OKLCH L 34.2% C 0.132 H 336.6°. Best body text is #FFFFFF at 12.46:1 contrast (WCAG AA passes).

Color values

HEX#5F1151
RGBrgb(95, 17, 81)
HSLhsl(311, 70%, 22%)
HSVhsv(311, 82%, 37%)
CMYKcmyk(0%, 82.1%, 14.7%, 62.7%)
CIE-LABlab(21.68, 41.04, -19.17)
CIE-LCHlch(21.68, 45.29, 334.96°)
OKLaboklab(34.23% 0.1208 -0.0522)
OKLCHoklch(34.23% 0.132 336.6)
XYZxyz(6.4051, 3.4285, 8.1074)
Luminance0.0343 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1151 #115F1F
analogous
#46115F #5F1151 #5F112A
triadic
#5F1151 #515F11 #11515F
tetradic
#5F1151 #5F4611 #115F1F #112A5F
square
#5F1151 #5F4611 #115F1F #112A5F
split-complementary
#5F1151 #2A5F11 #115F46
monochromatic
#1A0516 #2B0825 #5F1151 #931A7D #C724AA

Accessibility & contrast

On white

12.46
#5F1151 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#5F1151 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1151
12.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1151#FFFFFF#000000##FFFFFF
##5F11511.0012.461.6912.46
#FFFFFF12.461.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#132C53
Deuteranopia (green-blind)
#2F384F
Tritanopia (blue-blind)
#641730
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #5f1151;
/* rgb */ color: rgb(95, 17, 81);
/* oklch */ color: oklch(34.2% 0.132 336.6);
Tailwind
colors: {
  custom: {
    50: '#8f5982',
    500: '#5f1151',
    950: '#000000',
  },
}
SCSS
$custom: #5f1151;
$custom-light: #8f5982;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1151",
  "rgb": {
    "r": 95,
    "g": 17,
    "b": 81
  },
  "hsl": {
    "h": 310.769,
    "s": 69.643,
    "l": 21.961
  },
  "oklch": {
    "l": 0.34234,
    "c": 0.13159,
    "h": 336.6
  },
  "luminance": 0.03428
}

Semantic roles & 50–950 ramp

primary
#5F1151
secondary
#349846
accent
#EC5B3B
background
#F9F5F7
surface
#F1E9EE
border
#CBC5C9
text
#0D040A
muted
#7E797C

Preview Lab

Preview with #5F1151

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

Preview Lab → · Contrast checker → · Palette generator →

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