#5B102C#5B102C

#5B102C is a dark, moderate pink. Relative luminance 0.028; OKLCH L 31.7% C 0.109 H 3.6°. Best body text is #FFFFFF at 13.50:1 contrast (WCAG AA passes).

Color values

HEX#5B102C
RGBrgb(91, 16, 44)
HSLhsl(338, 70%, 21%)
HSVhsv(338, 82%, 36%)
CMYKcmyk(0%, 82.4%, 51.6%, 64.3%)
CIE-LABlab(19.13, 35.36, 2.55)
CIE-LCHlch(19.13, 35.45, 4.13°)
OKLaboklab(31.7% 0.1083 0.0069)
OKLCHoklch(31.7% 0.109 3.6)
XYZxyz(4.9547, 2.7773, 2.6575)
Luminance0.0278 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B102C #105B3F
analogous
#5B1051 #5B102C #5B1910
triadic
#5B102C #2C5B10 #102C5B
tetradic
#5B102C #515B10 #105B3F #19105B
square
#5B102C #515B10 #105B3F #19105B
split-complementary
#5B102C #105B19 #10515B
monochromatic
#1A050D #270713 #5B102C #8F1945 #C3225E

Accessibility & contrast

On white

13.50
#5B102C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#5B102C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B102C
13.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B102C#FFFFFF#000000##FFFFFF
##5B102C1.0013.501.5613.50
#FFFFFF13.501.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#22252D
Deuteranopia (green-blind)
#36342A
Tritanopia (blue-blind)
#64011C
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #5b102c;
/* rgb */ color: rgb(91, 16, 44);
/* oklch */ color: oklch(31.7% 0.109 3.6);
Tailwind
colors: {
  custom: {
    50: '#8e5764',
    500: '#5b102c',
    950: '#000000',
  },
}
SCSS
$custom: #5b102c;
$custom-light: #8e5764;
$custom-dark: #000000;
JSON
{
  "hex": "#5b102c",
  "rgb": {
    "r": 91,
    "g": 16,
    "b": 44
  },
  "hsl": {
    "h": 337.6,
    "s": 70.093,
    "l": 20.98
  },
  "oklch": {
    "l": 0.31697,
    "c": 0.10854,
    "h": 3.6
  },
  "luminance": 0.02777
}

Semantic roles & 50–950 ramp

primary
#5B102C
secondary
#339470
accent
#EDAA3B
background
#F9F5F6
surface
#F1E9EB
border
#CBC5C6
text
#0D0305
muted
#7E787A

Preview Lab

Preview with #5B102C

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

Preview Lab → · Contrast checker → · Palette generator →

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