#5F2147#5F2147

#5F2147 is a dark, moderate pink. Relative luminance 0.040; OKLCH L 35.5% C 0.102 H 345.8°. Best body text is #FFFFFF at 11.70:1 contrast (WCAG AA passes).

Color values

HEX#5F2147
RGBrgb(95, 33, 71)
HSLhsl(323, 48%, 25%)
HSVhsv(323, 65%, 37%)
CMYKcmyk(0%, 65.3%, 25.3%, 62.7%)
CIE-LABlab(23.59, 32.77, -9.46)
CIE-LCHlch(23.59, 34.10, 343.89°)
OKLaboklab(35.47% 0.0986 -0.025)
OKLCHoklch(35.47% 0.102 345.8)
XYZxyz(6.4007, 3.9761, 6.3904)
Luminance0.0398 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2147 #215F39
analogous
#58215F #5F2147 #5F2128
triadic
#5F2147 #475F21 #21475F
tetradic
#5F2147 #5F5821 #215F39 #21285F
square
#5F2147 #5F5821 #215F39 #21285F
split-complementary
#5F2147 #285F21 #215F58
monochromatic
#170811 #321125 #5F2147 #8C3169 #BA418B

Accessibility & contrast

On white

11.70
#5F2147 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#5F2147 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2147
11.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2147#FFFFFF#000000##FFFFFF
##5F21471.0011.701.8011.70
#FFFFFF11.701.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#273248
Deuteranopia (green-blind)
#393C45
Tritanopia (blue-blind)
#652031
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5f2147;
/* rgb */ color: rgb(95, 33, 71);
/* oklch */ color: oklch(35.5% 0.102 345.8);
Tailwind
colors: {
  custom: {
    50: '#8f607a',
    500: '#5f2147',
    950: '#000000',
  },
}
SCSS
$custom: #5f2147;
$custom-light: #8f607a;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2147",
  "rgb": {
    "r": 95,
    "g": 33,
    "b": 71
  },
  "hsl": {
    "h": 323.226,
    "s": 48.438,
    "l": 25.098
  },
  "oklch": {
    "l": 0.35467,
    "c": 0.10176,
    "h": 345.8
  },
  "luminance": 0.03976
}

Semantic roles & 50–950 ramp

primary
#5F2147
secondary
#499365
accent
#D88550
background
#F9F5F7
surface
#F1EAED
border
#CBC6C8
text
#0D0509
muted
#7E797B

Preview Lab

Preview with #5F2147

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

Preview Lab → · Contrast checker → · Palette generator →

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