#5B123F#5B123F

#5B123F is a dark, moderate pink. Relative luminance 0.030; OKLCH L 32.7% C 0.115 H 347.6°. Best body text is #FFFFFF at 13.10:1 contrast (WCAG AA passes).

Color values

HEX#5B123F
RGBrgb(91, 18, 63)
HSLhsl(323, 67%, 21%)
HSVhsv(323, 80%, 36%)
CMYKcmyk(0%, 80.2%, 30.8%, 64.3%)
CIE-LABlab(20.11, 36.91, -9.35)
CIE-LCHlch(20.11, 38.08, 345.78°)
OKLaboklab(32.65% 0.1124 -0.0247)
OKLCHoklch(32.65% 0.115 347.6)
XYZxyz(5.4282, 3.0162, 4.9980)
Luminance0.0302 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B123F #125B2E
analogous
#53125B #5B123F #5B121B
triadic
#5B123F #3F5B12 #123F5B
tetradic
#5B123F #5B5312 #125B2E #121B5B
square
#5B123F #5B5312 #125B2E #121B5B
split-complementary
#5B123F #1B5B12 #125B53
monochromatic
#1A0512 #28081C #5B123F #8E1C62 #C12686

Accessibility & contrast

On white

13.10
#5B123F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#5B123F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B123F
13.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B123F#FFFFFF#000000##FFFFFF
##5B123F1.0013.101.6013.10
#FFFFFF13.101.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D2840
Deuteranopia (green-blind)
#32353D
Tritanopia (blue-blind)
#620F26
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #5b123f;
/* rgb */ color: rgb(91, 18, 63);
/* oklch */ color: oklch(32.7% 0.115 347.6);
Tailwind
colors: {
  custom: {
    50: '#8d5874',
    500: '#5b123f',
    950: '#000000',
  },
}
SCSS
$custom: #5b123f;
$custom-light: #8d5874;
$custom-dark: #000000;
JSON
{
  "hex": "#5b123f",
  "rgb": {
    "r": 91,
    "g": 18,
    "b": 63
  },
  "hsl": {
    "h": 323.014,
    "s": 66.972,
    "l": 21.373
  },
  "oklch": {
    "l": 0.32652,
    "c": 0.11506,
    "h": 347.6
  },
  "luminance": 0.03016
}

Semantic roles & 50–950 ramp

primary
#5B123F
secondary
#359359
accent
#EA803E
background
#F8F5F7
surface
#F0E9ED
border
#CBC5C8
text
#0D0408
muted
#7D797B

Preview Lab

Preview with #5B123F

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

Preview Lab → · Contrast checker → · Palette generator →

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