#5B124B#5B124B

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

Color values

HEX#5B124B
RGBrgb(91, 18, 75)
HSLhsl(313, 67%, 21%)
HSVhsv(313, 80%, 36%)
CMYKcmyk(0%, 80.2%, 17.6%, 64.3%)
CIE-LABlab(20.69, 38.69, -16.70)
CIE-LCHlch(20.69, 42.15, 336.65°)
OKLaboklab(33.27% 0.1147 -0.0453)
OKLCHoklch(33.27% 0.123 338.5)
XYZxyz(5.8008, 3.1653, 6.9607)
Luminance0.0316 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B124B #125B22
analogous
#47125B #5B124B #5B1227
triadic
#5B124B #4B5B12 #124B5B
tetradic
#5B124B #5B4712 #125B22 #12275B
square
#5B124B #5B4712 #125B22 #12275B
split-complementary
#5B124B #275B12 #125B47
monochromatic
#1A0515 #280821 #5B124B #8E1C75 #C1269F

Accessibility & contrast

On white

12.86
#5B124B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B124B
12.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B124B#FFFFFF#000000##FFFFFF
##5B124B1.0012.861.6312.86
#FFFFFF12.861.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#162B4D
Deuteranopia (green-blind)
#2E3649
Tritanopia (blue-blind)
#61162D
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #5b124b;
/* rgb */ color: rgb(91, 18, 75);
/* oklch */ color: oklch(33.3% 0.123 338.5);
Tailwind
colors: {
  custom: {
    50: '#8c597d',
    500: '#5b124b',
    950: '#000000',
  },
}
SCSS
$custom: #5b124b;
$custom-light: #8c597d;
$custom-dark: #000000;
JSON
{
  "hex": "#5b124b",
  "rgb": {
    "r": 91,
    "g": 18,
    "b": 75
  },
  "hsl": {
    "h": 313.151,
    "s": 66.972,
    "l": 21.373
  },
  "oklch": {
    "l": 0.33268,
    "c": 0.12335,
    "h": 338.5
  },
  "luminance": 0.03165
}

Semantic roles & 50–950 ramp

primary
#5B124B
secondary
#35934A
accent
#EA643E
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C0409
muted
#7D797B

Preview Lab

Preview with #5B124B

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

Preview Lab → · Contrast checker → · Palette generator →

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