#5B102B#5B102B

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

Color values

HEX#5B102B
RGBrgb(91, 16, 43)
HSLhsl(338, 70%, 21%)
HSVhsv(338, 82%, 36%)
CMYKcmyk(0%, 82.4%, 52.7%, 64.3%)
CIE-LABlab(19.10, 35.26, 3.22)
CIE-LCHlch(19.10, 35.41, 5.22°)
OKLaboklab(31.66% 0.1079 0.0086)
OKLCHoklch(31.66% 0.108 4.5)
XYZxyz(4.9361, 2.7698, 2.5597)
Luminance0.0277 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B102B #105B40
analogous
#5B1050 #5B102B #5B1A10
triadic
#5B102B #2B5B10 #102B5B
tetradic
#5B102B #505B10 #105B40 #1A105B
square
#5B102B #505B10 #105B40 #1A105B
split-complementary
#5B102B #105B1A #10505B
monochromatic
#1A050C #270712 #5B102B #8F1944 #C3225C

Accessibility & contrast

On white

13.52
#5B102B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#5B102B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B102B
13.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B102B#FFFFFF#000000##FFFFFF
##5B102B1.0013.521.5513.52
#FFFFFF13.521.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#23252C
Deuteranopia (green-blind)
#363429
Tritanopia (blue-blind)
#64011C
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #5b102b;
/* rgb */ color: rgb(91, 16, 43);
/* oklch */ color: oklch(31.7% 0.108 4.5);
Tailwind
colors: {
  custom: {
    50: '#8e5764',
    500: '#5b102b',
    950: '#000000',
  },
}
SCSS
$custom: #5b102b;
$custom-light: #8e5764;
$custom-dark: #000000;
JSON
{
  "hex": "#5b102b",
  "rgb": {
    "r": 91,
    "g": 16,
    "b": 43
  },
  "hsl": {
    "h": 338.4,
    "s": 70.093,
    "l": 20.98
  },
  "oklch": {
    "l": 0.31664,
    "c": 0.10825,
    "h": 4.5
  },
  "luminance": 0.02769
}

Semantic roles & 50–950 ramp

primary
#5B102B
secondary
#339471
accent
#EDAD3B
background
#F9F5F5
surface
#F1E9EA
border
#CBC5C6
text
#0D0305
muted
#7E7879

Preview Lab

Preview with #5B102B

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

Preview Lab → · Contrast checker → · Palette generator →

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