#5F1148#5F1148

#5F1148 is a dark, vivid pink. Relative luminance 0.033; OKLCH L 33.7% C 0.125 H 342.8°. Best body text is #FFFFFF at 12.65:1 contrast (WCAG AA passes).

Color values

HEX#5F1148
RGBrgb(95, 17, 72)
HSLhsl(318, 70%, 22%)
HSVhsv(318, 82%, 37%)
CMYKcmyk(0%, 82.1%, 24.2%, 62.7%)
CIE-LABlab(21.22, 39.66, -13.78)
CIE-LCHlch(21.22, 41.99, 340.83°)
OKLaboklab(33.74% 0.1195 -0.0369)
OKLCHoklch(33.74% 0.125 342.8)
XYZxyz(6.0897, 3.3023, 6.4463)
Luminance0.0330 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1148 #115F28
analogous
#4F115F #5F1148 #5F1121
triadic
#5F1148 #485F11 #11485F
tetradic
#5F1148 #5F4F11 #115F28 #11215F
square
#5F1148 #5F4F11 #115F28 #11215F
split-complementary
#5F1148 #215F11 #115F4F
monochromatic
#1A0514 #2B0821 #5F1148 #931A6F #C72497

Accessibility & contrast

On white

12.65
#5F1148 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#5F1148 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1148
12.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1148#FFFFFF#000000##FFFFFF
##5F11481.0012.651.6612.65
#FFFFFF12.651.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A2B49
Deuteranopia (green-blind)
#323846
Tritanopia (blue-blind)
#66112B
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #5f1148;
/* rgb */ color: rgb(95, 17, 72);
/* oklch */ color: oklch(33.7% 0.125 342.8);
Tailwind
colors: {
  custom: {
    50: '#90597b',
    500: '#5f1148',
    950: '#000000',
  },
}
SCSS
$custom: #5f1148;
$custom-light: #90597b;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1148",
  "rgb": {
    "r": 95,
    "g": 17,
    "b": 72
  },
  "hsl": {
    "h": 317.692,
    "s": 69.643,
    "l": 21.961
  },
  "oklch": {
    "l": 0.33744,
    "c": 0.1251,
    "h": 342.8
  },
  "luminance": 0.03302
}

Semantic roles & 50–950 ramp

primary
#5F1148
secondary
#349852
accent
#EC703B
background
#F9F5F7
surface
#F1E9ED
border
#CBC5C8
text
#0D0409
muted
#7E797B

Preview Lab

Preview with #5F1148

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

Preview Lab → · Contrast checker → · Palette generator →

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