#5D124E#5D124E

#5D124E is a dark, vivid pink. Relative luminance 0.033; OKLCH L 33.8% C 0.127 H 337.5°. Best body text is #FFFFFF at 12.64:1 contrast (WCAG AA passes).

Color values

HEX#5D124E
RGBrgb(93, 18, 78)
HSLhsl(312, 68%, 22%)
HSVhsv(312, 81%, 36%)
CMYKcmyk(0%, 80.6%, 16.1%, 63.5%)
CIE-LABlab(21.25, 39.70, -17.85)
CIE-LCHlch(21.25, 43.53, 335.79°)
OKLaboklab(33.79% 0.1173 -0.0485)
OKLCHoklch(33.79% 0.127 337.5)
XYZxyz(6.1058, 3.3104, 7.5237)
Luminance0.0331 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D124E #125D21
analogous
#47125D #5D124E #5D1229
triadic
#5D124E #4E5D12 #124E5D
tetradic
#5D124E #5D4712 #125D21 #12295D
square
#5D124E #5D4712 #125D21 #12295D
split-complementary
#5D124E #295D12 #125D47
monochromatic
#1A0516 #2A0823 #5D124E #901C79 #C426A4

Accessibility & contrast

On white

12.64
#5D124E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#5D124E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D124E
12.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D124E#FFFFFF#000000##FFFFFF
##5D124E1.0012.641.6612.64
#FFFFFF12.641.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#152C50
Deuteranopia (green-blind)
#2F374C
Tritanopia (blue-blind)
#62162E
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #5d124e;
/* rgb */ color: rgb(93, 18, 78);
/* oklch */ color: oklch(33.8% 0.127 337.5);
Tailwind
colors: {
  custom: {
    50: '#8e597f',
    500: '#5d124e',
    950: '#000000',
  },
}
SCSS
$custom: #5d124e;
$custom-light: #8e597f;
$custom-dark: #000000;
JSON
{
  "hex": "#5d124e",
  "rgb": {
    "r": 93,
    "g": 18,
    "b": 78
  },
  "hsl": {
    "h": 312,
    "s": 67.568,
    "l": 21.765
  },
  "oklch": {
    "l": 0.33792,
    "c": 0.12692,
    "h": 337.5
  },
  "luminance": 0.0331
}

Semantic roles & 50–950 ramp

primary
#5D124E
secondary
#359549
accent
#EA603D
background
#F9F5F7
surface
#F1E9EE
border
#CBC5C9
text
#0D040A
muted
#7E797C

Preview Lab

Preview with #5D124E

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

Preview Lab → · Contrast checker → · Palette generator →

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