#5F2146#5F2146

#5F2146 is a dark, moderate pink. Relative luminance 0.040; OKLCH L 35.4% C 0.101 H 346.6°. Best body text is #FFFFFF at 11.71:1 contrast (WCAG AA passes).

Color values

HEX#5F2146
RGBrgb(95, 33, 70)
HSLhsl(324, 48%, 25%)
HSVhsv(324, 65%, 37%)
CMYKcmyk(0%, 65.3%, 26.3%, 62.7%)
CIE-LABlab(23.55, 32.61, -8.85)
CIE-LCHlch(23.55, 33.79, 344.82°)
OKLaboklab(35.42% 0.0983 -0.0233)
OKLCHoklch(35.42% 0.101 346.6)
XYZxyz(6.3689, 3.9634, 6.2228)
Luminance0.0396 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2146 #215F3A
analogous
#59215F #5F2146 #5F2127
triadic
#5F2146 #465F21 #21465F
tetradic
#5F2146 #5F5921 #215F3A #21275F
square
#5F2146 #5F5921 #215F3A #21275F
split-complementary
#5F2146 #275F21 #215F59
monochromatic
#170811 #321125 #5F2146 #8C3167 #BA4189

Accessibility & contrast

On white

11.71
#5F2146 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#5F2146 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2146
11.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2146#FFFFFF#000000##FFFFFF
##5F21461.0011.711.7911.71
#FFFFFF11.711.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#283147
Deuteranopia (green-blind)
#393C44
Tritanopia (blue-blind)
#662030
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5f2146;
/* rgb */ color: rgb(95, 33, 70);
/* oklch */ color: oklch(35.4% 0.101 346.6);
Tailwind
colors: {
  custom: {
    50: '#8f6079',
    500: '#5f2146',
    950: '#000000',
  },
}
SCSS
$custom: #5f2146;
$custom-light: #8f6079;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2146",
  "rgb": {
    "r": 95,
    "g": 33,
    "b": 70
  },
  "hsl": {
    "h": 324.194,
    "s": 48.438,
    "l": 25.098
  },
  "oklch": {
    "l": 0.35421,
    "c": 0.10107,
    "h": 346.6
  },
  "luminance": 0.03963
}

Semantic roles & 50–950 ramp

primary
#5F2146
secondary
#499367
accent
#D88750
background
#F9F5F7
surface
#F1EAED
border
#CBC6C8
text
#0D0509
muted
#7E797B

Preview Lab

Preview with #5F2146

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

Preview Lab → · Contrast checker → · Palette generator →

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