#5F124D#5F124D

#5F124D is a dark, vivid pink. Relative luminance 0.034; OKLCH L 34.1% C 0.127 H 339.4°. Best body text is #FFFFFF at 12.50:1 contrast (WCAG AA passes).

Color values

HEX#5F124D
RGBrgb(95, 18, 77)
HSLhsl(314, 68%, 22%)
HSVhsv(314, 81%, 37%)
CMYKcmyk(0%, 81.1%, 18.9%, 62.7%)
CIE-LABlab(21.59, 40.07, -16.61)
CIE-LCHlch(21.59, 43.38, 337.48°)
OKLaboklab(34.09% 0.1193 -0.045)
OKLCHoklch(34.09% 0.127 339.4)
XYZxyz(6.2753, 3.4020, 7.3459)
Luminance0.0340 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F124D #125F24
analogous
#4B125F #5F124D #5F1227
triadic
#5F124D #4D5F12 #124D5F
tetradic
#5F124D #5F4B12 #125F24 #12275F
square
#5F124D #5F4B12 #125F24 #12275F
split-complementary
#5F124D #275F12 #125F4B
monochromatic
#1A0515 #2C0823 #5F124D #921C77 #C625A0

Accessibility & contrast

On white

12.50
#5F124D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#5F124D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F124D
12.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F124D#FFFFFF#000000##FFFFFF
##5F124D1.0012.501.6812.50
#FFFFFF12.501.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#172C4F
Deuteranopia (green-blind)
#31384B
Tritanopia (blue-blind)
#65152E
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #5f124d;
/* rgb */ color: rgb(95, 18, 77);
/* oklch */ color: oklch(34.1% 0.127 339.4);
Tailwind
colors: {
  custom: {
    50: '#8f597f',
    500: '#5f124d',
    950: '#000000',
  },
}
SCSS
$custom: #5f124d;
$custom-light: #8f597f;
$custom-dark: #000000;
JSON
{
  "hex": "#5f124d",
  "rgb": {
    "r": 95,
    "g": 18,
    "b": 77
  },
  "hsl": {
    "h": 314.026,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.34094,
    "c": 0.12749,
    "h": 339.4
  },
  "luminance": 0.03401
}

Semantic roles & 50–950 ramp

primary
#5F124D
secondary
#36974C
accent
#EB663D
background
#F9F5F7
surface
#F1E9EE
border
#CBC5C9
text
#0D040A
muted
#7E797C

Preview Lab

Preview with #5F124D

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

Preview Lab → · Contrast checker → · Palette generator →

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