#5F2140#5F2140

#5F2140 is a dark, moderate pink. Relative luminance 0.039; OKLCH L 35.2% C 0.097 H 352.2°. Best body text is #FFFFFF at 11.81:1 contrast (WCAG AA passes).

Color values

HEX#5F2140
RGBrgb(95, 33, 64)
HSLhsl(330, 48%, 25%)
HSVhsv(330, 65%, 37%)
CMYKcmyk(0%, 65.3%, 32.6%, 62.7%)
CIE-LABlab(23.31, 31.72, -5.13)
CIE-LCHlch(23.31, 32.13, 350.81°)
OKLaboklab(35.16% 0.0964 -0.0132)
OKLCHoklch(35.16% 0.097 352.2)
XYZxyz(6.1889, 3.8914, 5.2747)
Luminance0.0389 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2140 #215F40
analogous
#5F215F #5F2140 #5F2121
triadic
#5F2140 #405F21 #21405F
tetradic
#5F2140 #5F5F21 #215F40 #21215F
square
#5F2140 #5F5F21 #215F40 #21215F
split-complementary
#5F2140 #215F21 #215F5F
monochromatic
#17080F #321121 #5F2140 #8C315F #BA417D

Accessibility & contrast

On white

11.81
#5F2140 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#5F2140 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2140
11.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2140#FFFFFF#000000##FFFFFF
##5F21401.0011.811.7811.81
#FFFFFF11.811.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.811.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f2140;
/* rgb */ color: rgb(95, 33, 64);
/* oklch */ color: oklch(35.2% 0.097 352.2);
Tailwind
colors: {
  custom: {
    50: '#8f6074',
    500: '#5f2140',
    950: '#000000',
  },
}
SCSS
$custom: #5f2140;
$custom-light: #8f6074;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2140",
  "rgb": {
    "r": 95,
    "g": 33,
    "b": 64
  },
  "hsl": {
    "h": 330,
    "s": 48.438,
    "l": 25.098
  },
  "oklch": {
    "l": 0.35164,
    "c": 0.09735,
    "h": 352.2
  },
  "luminance": 0.03891
}

Semantic roles & 50–950 ramp

primary
#5F2140
secondary
#49936E
accent
#D89450
background
#F9F5F7
surface
#F1EAED
border
#CBC6C8
text
#0D0508
muted
#7E797B

Preview Lab

Preview with #5F2140

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

Preview Lab → · Contrast checker → · Palette generator →

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