#5F1247#5F1247

#5F1247 is a dark, vivid pink. Relative luminance 0.033; OKLCH L 33.8% C 0.123 H 343.6°. Best body text is #FFFFFF at 12.62:1 contrast (WCAG AA passes).

Color values

HEX#5F1247
RGBrgb(95, 18, 71)
HSLhsl(319, 68%, 22%)
HSVhsv(319, 81%, 37%)
CMYKcmyk(0%, 81.1%, 25.3%, 62.7%)
CIE-LABlab(21.29, 39.17, -12.99)
CIE-LCHlch(21.29, 41.27, 341.65°)
OKLaboklab(33.78% 0.1183 -0.0347)
OKLCHoklch(33.78% 0.123 343.6)
XYZxyz(6.0732, 3.3211, 6.2812)
Luminance0.0332 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1247 #125F2A
analogous
#51125F #5F1247 #5F1221
triadic
#5F1247 #475F12 #12475F
tetradic
#5F1247 #5F5112 #125F2A #12215F
square
#5F1247 #5F5112 #125F2A #12215F
split-complementary
#5F1247 #215F12 #125F51
monochromatic
#1A0513 #2C0821 #5F1247 #921C6D #C62594

Accessibility & contrast

On white

12.62
#5F1247 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F1247
12.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1247#FFFFFF#000000##FFFFFF
##5F12471.0012.621.6612.62
#FFFFFF12.621.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B2B48
Deuteranopia (green-blind)
#333845
Tritanopia (blue-blind)
#66122B
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #5f1247;
/* rgb */ color: rgb(95, 18, 71);
/* oklch */ color: oklch(33.8% 0.123 343.6);
Tailwind
colors: {
  custom: {
    50: '#90597a',
    500: '#5f1247',
    950: '#000000',
  },
}
SCSS
$custom: #5f1247;
$custom-light: #90597a;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1247",
  "rgb": {
    "r": 95,
    "g": 18,
    "b": 71
  },
  "hsl": {
    "h": 318.701,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.33779,
    "c": 0.12328,
    "h": 343.6
  },
  "luminance": 0.0332
}

Semantic roles & 50–950 ramp

primary
#5F1247
secondary
#369754
accent
#EB733D
background
#F9F5F7
surface
#F1E9ED
border
#CBC5C8
text
#0D0409
muted
#7E797B

Preview Lab

Preview with #5F1247

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

Preview Lab → · Contrast checker → · Palette generator →

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