#5F2240#5F2240

#5F2240 is a dark, moderate pink. Relative luminance 0.039; OKLCH L 35.3% C 0.096 H 352.5°. Best body text is #FFFFFF at 11.74:1 contrast (WCAG AA passes).

Color values

HEX#5F2240
RGBrgb(95, 34, 64)
HSLhsl(330, 47%, 25%)
HSVhsv(330, 64%, 37%)
CMYKcmyk(0%, 64.2%, 32.6%, 62.7%)
CIE-LABlab(23.50, 31.21, -4.85)
CIE-LCHlch(23.50, 31.58, 351.16°)
OKLaboklab(35.3% 0.0949 -0.0125)
OKLCHoklch(35.3% 0.096 352.5)
XYZxyz(6.2170, 3.9477, 5.2841)
Luminance0.0395 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2240 #225F41
analogous
#5F225E #5F2240 #5F2222
triadic
#5F2240 #405F22 #22405F
tetradic
#5F2240 #5E5F22 #225F41 #22225F
square
#5F2240 #5E5F22 #225F41 #22225F
split-complementary
#5F2240 #225F22 #225E5F
monochromatic
#17080F #321222 #5F2240 #8C325E #B9427D

Accessibility & contrast

On white

11.74
#5F2240 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F2240
11.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2240#FFFFFF#000000##FFFFFF
##5F22401.0011.741.7911.74
#FFFFFF11.741.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B3141
Deuteranopia (green-blind)
#3B3C3F
Tritanopia (blue-blind)
#661F2E
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5f2240;
/* rgb */ color: rgb(95, 34, 64);
/* oklch */ color: oklch(35.3% 0.096 352.5);
Tailwind
colors: {
  custom: {
    50: '#8f6174',
    500: '#5f2240',
    950: '#000000',
  },
}
SCSS
$custom: #5f2240;
$custom-light: #8f6174;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2240",
  "rgb": {
    "r": 95,
    "g": 34,
    "b": 64
  },
  "hsl": {
    "h": 330.492,
    "s": 47.287,
    "l": 25.294
  },
  "oklch": {
    "l": 0.35304,
    "c": 0.0957,
    "h": 352.5
  },
  "luminance": 0.03947
}

Semantic roles & 50–950 ramp

primary
#5F2240
secondary
#4A936F
accent
#D79551
background
#F9F5F7
surface
#F1EAED
border
#CBC6C8
text
#0D0508
muted
#7E797B

Preview Lab

Preview with #5F2240

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

Preview Lab → · Contrast checker → · Palette generator →

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