#5B123B#5B123B

#5B123B is a dark, moderate pink. Relative luminance 0.030; OKLCH L 32.5% C 0.113 H 350.9°. Best body text is #FFFFFF at 13.17:1 contrast (WCAG AA passes).

Color values

HEX#5B123B
RGBrgb(91, 18, 59)
HSLhsl(326, 67%, 21%)
HSVhsv(326, 80%, 36%)
CMYKcmyk(0%, 80.2%, 35.2%, 64.3%)
CIE-LABlab(19.94, 36.37, -6.83)
CIE-LCHlch(19.94, 37.00, 349.36°)
OKLaboklab(32.47% 0.1113 -0.0177)
OKLCHoklch(32.47% 0.113 350.9)
XYZxyz(5.3204, 2.9732, 4.4305)
Luminance0.0297 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B123B #125B32
analogous
#57125B #5B123B #5B1217
triadic
#5B123B #3B5B12 #123B5B
tetradic
#5B123B #5B5712 #125B32 #12175B
square
#5B123B #5B5712 #125B32 #12175B
split-complementary
#5B123B #175B12 #125B57
monochromatic
#1A0511 #28081A #5B123B #8E1C5C #C1267D

Accessibility & contrast

On white

13.17
#5B123B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#5B123B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B123B
13.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B123B#FFFFFF#000000##FFFFFF
##5B123B1.0013.171.5913.17
#FFFFFF13.171.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E283C
Deuteranopia (green-blind)
#333539
Tritanopia (blue-blind)
#620D24
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #5b123b;
/* rgb */ color: rgb(91, 18, 59);
/* oklch */ color: oklch(32.5% 0.113 350.9);
Tailwind
colors: {
  custom: {
    50: '#8d5870',
    500: '#5b123b',
    950: '#000000',
  },
}
SCSS
$custom: #5b123b;
$custom-light: #8d5870;
$custom-dark: #000000;
JSON
{
  "hex": "#5b123b",
  "rgb": {
    "r": 91,
    "g": 18,
    "b": 59
  },
  "hsl": {
    "h": 326.301,
    "s": 66.972,
    "l": 21.373
  },
  "oklch": {
    "l": 0.3247,
    "c": 0.1127,
    "h": 350.9
  },
  "luminance": 0.02973
}

Semantic roles & 50–950 ramp

primary
#5B123B
secondary
#35935F
accent
#EA893E
background
#F8F5F6
surface
#F0E9EC
border
#CBC5C7
text
#0D0407
muted
#7D797A

Preview Lab

Preview with #5B123B

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

Preview Lab → · Contrast checker → · Palette generator →

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