#5B124D#5B124D

#5B124D is a dark, vivid pink. Relative luminance 0.032; OKLCH L 33.4% C 0.125 H 337.0°. Best body text is #FFFFFF at 12.82:1 contrast (WCAG AA passes).

Color values

HEX#5B124D
RGBrgb(91, 18, 77)
HSLhsl(312, 67%, 21%)
HSVhsv(312, 80%, 36%)
CMYKcmyk(0%, 80.2%, 15.4%, 64.3%)
CIE-LABlab(20.80, 39.02, -17.90)
CIE-LCHlch(20.80, 42.93, 335.36°)
OKLaboklab(33.38% 0.115 -0.0487)
OKLCHoklch(33.38% 0.125 337)
XYZxyz(5.8704, 3.1931, 7.3269)
Luminance0.0319 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B124D #125B20
analogous
#45125B #5B124D #5B1229
triadic
#5B124D #4D5B12 #124D5B
tetradic
#5B124D #5B4512 #125B20 #12295B
square
#5B124D #5B4512 #125B20 #12295B
split-complementary
#5B124D #295B12 #125B45
monochromatic
#1A0516 #280822 #5B124D #8E1C78 #C126A3

Accessibility & contrast

On white

12.82
#5B124D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#5B124D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B124D
12.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B124D#FFFFFF#000000##FFFFFF
##5B124D1.0012.821.6412.82
#FFFFFF12.821.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#142B4F
Deuteranopia (green-blind)
#2D364B
Tritanopia (blue-blind)
#60172E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #5b124d;
/* rgb */ color: rgb(91, 18, 77);
/* oklch */ color: oklch(33.4% 0.125 337.0);
Tailwind
colors: {
  custom: {
    50: '#8c597f',
    500: '#5b124d',
    950: '#000000',
  },
}
SCSS
$custom: #5b124d;
$custom-light: #8c597f;
$custom-dark: #000000;
JSON
{
  "hex": "#5b124d",
  "rgb": {
    "r": 91,
    "g": 18,
    "b": 77
  },
  "hsl": {
    "h": 311.507,
    "s": 66.972,
    "l": 21.373
  },
  "oklch": {
    "l": 0.3338,
    "c": 0.12487,
    "h": 337
  },
  "luminance": 0.03193
}

Semantic roles & 50–950 ramp

primary
#5B124D
secondary
#359347
accent
#EA5F3E
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5B124D

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

Preview Lab → · Contrast checker → · Palette generator →

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