#5B124A#5B124A

#5B124A is a dark, vivid pink. Relative luminance 0.032; OKLCH L 33.2% C 0.123 H 339.2°. Best body text is #FFFFFF at 12.88:1 contrast (WCAG AA passes).

Color values

HEX#5B124A
RGBrgb(91, 18, 74)
HSLhsl(314, 67%, 21%)
HSVhsv(314, 80%, 36%)
CMYKcmyk(0%, 80.2%, 18.7%, 64.3%)
CIE-LABlab(20.64, 38.54, -16.10)
CIE-LCHlch(20.64, 41.77, 337.32°)
OKLaboklab(33.21% 0.1146 -0.0436)
OKLCHoklch(33.21% 0.123 339.2)
XYZxyz(5.7669, 3.1517, 6.7819)
Luminance0.0315 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B124A #125B23
analogous
#48125B #5B124A #5B1226
triadic
#5B124A #4A5B12 #124A5B
tetradic
#5B124A #5B4812 #125B23 #12265B
square
#5B124A #5B4812 #125B23 #12265B
split-complementary
#5B124A #265B12 #125B48
monochromatic
#1A0515 #280820 #5B124A #8E1C74 #C1269D

Accessibility & contrast

On white

12.88
#5B124A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#5B124A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B124A
12.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B124A#FFFFFF#000000##FFFFFF
##5B124A1.0012.881.6312.88
#FFFFFF12.881.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#162A4C
Deuteranopia (green-blind)
#2F3648
Tritanopia (blue-blind)
#61152C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #5b124a;
/* rgb */ color: rgb(91, 18, 74);
/* oklch */ color: oklch(33.2% 0.123 339.2);
Tailwind
colors: {
  custom: {
    50: '#8c597c',
    500: '#5b124a',
    950: '#000000',
  },
}
SCSS
$custom: #5b124a;
$custom-light: #8c597c;
$custom-dark: #000000;
JSON
{
  "hex": "#5b124a",
  "rgb": {
    "r": 91,
    "g": 18,
    "b": 74
  },
  "hsl": {
    "h": 313.973,
    "s": 66.972,
    "l": 21.373
  },
  "oklch": {
    "l": 0.33213,
    "c": 0.1226,
    "h": 339.2
  },
  "luminance": 0.03151
}

Semantic roles & 50–950 ramp

primary
#5B124A
secondary
#35934B
accent
#EA663E
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C0409
muted
#7D797B

Preview Lab

Preview with #5B124A

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

Preview Lab → · Contrast checker → · Palette generator →

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