#5B2F4E#5B2F4E

#5B2F4E is a dark, moderate pink. Relative luminance 0.048; OKLCH L 37.4% C 0.078 H 339.3°. Best body text is #FFFFFF at 10.71:1 contrast (WCAG AA passes).

Color values

HEX#5B2F4E
RGBrgb(91, 47, 78)
HSLhsl(318, 32%, 27%)
HSVhsv(318, 48%, 36%)
CMYKcmyk(0%, 48.4%, 14.3%, 64.3%)
CIE-LABlab(26.18, 24.80, -10.27)
CIE-LCHlch(26.18, 26.84, 337.50°)
OKLaboklab(37.36% 0.0726 -0.0275)
OKLCHoklch(37.36% 0.078 339.3)
XYZxyz(6.7061, 4.8077, 7.7810)
Luminance0.0481 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2F4E #2F5B3C
analogous
#522F5B #5B2F4E #5B2F38
triadic
#5B2F4E #4E5B2F #2F4E5B
tetradic
#5B2F4E #5B522F #2F5B3C #2F385B
square
#5B2F4E #5B522F #2F5B3C #2F385B
split-complementary
#5B2F4E #385B2F #2F5B52
monochromatic
#140A11 #331A2B #5B2F4E #834471 #AA5A92

Accessibility & contrast

On white

10.71
#5B2F4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#5B2F4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2F4E
10.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2F4E#FFFFFF#000000##FFFFFF
##5B2F4E1.0010.711.9610.71
#FFFFFF10.711.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#313A4F
Deuteranopia (green-blind)
#3C404D
Tritanopia (blue-blind)
#5F303B
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5b2f4e;
/* rgb */ color: rgb(91, 47, 78);
/* oklch */ color: oklch(37.4% 0.078 339.3);
Tailwind
colors: {
  custom: {
    50: '#8b697f',
    500: '#5b2f4e',
    950: '#000000',
  },
}
SCSS
$custom: #5b2f4e;
$custom-light: #8b697f;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2f4e",
  "rgb": {
    "r": 91,
    "g": 47,
    "b": 78
  },
  "hsl": {
    "h": 317.727,
    "s": 31.884,
    "l": 27.059
  },
  "oklch": {
    "l": 0.37357,
    "c": 0.07761,
    "h": 339.3
  },
  "luminance": 0.04807
}

Semantic roles & 50–950 ramp

primary
#5B2F4E
secondary
#598D68
accent
#C87F60
background
#F8F6F7
surface
#F0EBEE
border
#CBC6C9
text
#0C060A
muted
#7D7A7C

Preview Lab

Preview with #5B2F4E

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

Preview Lab → · Contrast checker → · Palette generator →

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