#5B124C#5B124C

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

Color values

HEX#5B124C
RGBrgb(91, 18, 76)
HSLhsl(312, 67%, 21%)
HSVhsv(312, 80%, 36%)
CMYKcmyk(0%, 80.2%, 16.5%, 64.3%)
CIE-LABlab(20.75, 38.85, -17.30)
CIE-LCHlch(20.75, 42.53, 336.00°)
OKLaboklab(33.32% 0.1149 -0.047)
OKLCHoklch(33.32% 0.124 337.7)
XYZxyz(5.8353, 3.1791, 7.1424)
Luminance0.0318 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B124C #125B21
analogous
#46125B #5B124C #5B1228
triadic
#5B124C #4C5B12 #124C5B
tetradic
#5B124C #5B4612 #125B21 #12285B
square
#5B124C #5B4612 #125B21 #12285B
split-complementary
#5B124C #285B12 #125B46
monochromatic
#1A0515 #280821 #5B124C #8E1C77 #C126A1

Accessibility & contrast

On white

12.84
#5B124C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B124C
12.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B124C#FFFFFF#000000##FFFFFF
##5B124C1.0012.841.6412.84
#FFFFFF12.841.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#152B4E
Deuteranopia (green-blind)
#2E364A
Tritanopia (blue-blind)
#60162D
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #5b124c;
/* rgb */ color: rgb(91, 18, 76);
/* oklch */ color: oklch(33.3% 0.124 337.7);
Tailwind
colors: {
  custom: {
    50: '#8c597e',
    500: '#5b124c',
    950: '#000000',
  },
}
SCSS
$custom: #5b124c;
$custom-light: #8c597e;
$custom-dark: #000000;
JSON
{
  "hex": "#5b124c",
  "rgb": {
    "r": 91,
    "g": 18,
    "b": 76
  },
  "hsl": {
    "h": 312.329,
    "s": 66.972,
    "l": 21.373
  },
  "oklch": {
    "l": 0.33324,
    "c": 0.1241,
    "h": 337.7
  },
  "luminance": 0.03179
}

Semantic roles & 50–950 ramp

primary
#5B124C
secondary
#359349
accent
#EA613E
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5B124C

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

Preview Lab → · Contrast checker → · Palette generator →

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