#5B2148#5B2148

#5B2148 is a dark, moderate pink. Relative luminance 0.038; OKLCH L 34.9% C 0.099 H 342.4°. Best body text is #FFFFFF at 11.96:1 contrast (WCAG AA passes).

Color values

HEX#5B2148
RGBrgb(91, 33, 72)
HSLhsl(320, 47%, 24%)
HSVhsv(320, 64%, 36%)
CMYKcmyk(0%, 63.7%, 20.9%, 64.3%)
CIE-LABlab(22.93, 31.59, -11.21)
CIE-LCHlch(22.93, 33.52, 340.46°)
OKLaboklab(34.85% 0.0942 -0.0299)
OKLCHoklch(34.85% 0.099 342.4)
XYZxyz(6.0281, 3.7803, 6.5418)
Luminance0.0378 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2148 #215B34
analogous
#51215B #5B2148 #5B212B
triadic
#5B2148 #485B21 #21485B
tetradic
#5B2148 #5B5121 #215B34 #212B5B
square
#5B2148 #5B5121 #215B34 #212B5B
split-complementary
#5B2148 #2B5B21 #215B51
monochromatic
#160812 #2E1124 #5B2148 #88316C #B5428F

Accessibility & contrast

On white

11.96
#5B2148 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#5B2148 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2148
11.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2148#FFFFFF#000000##FFFFFF
##5B21481.0011.961.7611.96
#FFFFFF11.961.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#253149
Deuteranopia (green-blind)
#363A47
Tritanopia (blue-blind)
#612131
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5b2148;
/* rgb */ color: rgb(91, 33, 72);
/* oklch */ color: oklch(34.9% 0.099 342.4);
Tailwind
colors: {
  custom: {
    50: '#8c607b',
    500: '#5b2148',
    950: '#000000',
  },
}
SCSS
$custom: #5b2148;
$custom-light: #8c607b;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2148",
  "rgb": {
    "r": 91,
    "g": 33,
    "b": 72
  },
  "hsl": {
    "h": 319.655,
    "s": 46.774,
    "l": 24.314
  },
  "oklch": {
    "l": 0.34854,
    "c": 0.09883,
    "h": 342.4
  },
  "luminance": 0.0378
}

Semantic roles & 50–950 ramp

primary
#5B2148
secondary
#498F60
accent
#D67D51
background
#F8F5F7
surface
#F0EAED
border
#CBC6C8
text
#0C0509
muted
#7D797B

Preview Lab

Preview with #5B2148

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

Preview Lab → · Contrast checker → · Palette generator →

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