#5F124C#5F124C

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

Color values

HEX#5F124C
RGBrgb(95, 18, 76)
HSLhsl(315, 68%, 22%)
HSVhsv(315, 81%, 37%)
CMYKcmyk(0%, 81.1%, 20%, 62.7%)
CIE-LABlab(21.53, 39.92, -16.02)
CIE-LCHlch(21.53, 43.01, 338.14°)
OKLaboklab(34.04% 0.1192 -0.0433)
OKLCHoklch(34.04% 0.127 340)
XYZxyz(6.2403, 3.3879, 7.1614)
Luminance0.0339 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F124C #125F25
analogous
#4C125F #5F124C #5F1226
triadic
#5F124C #4C5F12 #124C5F
tetradic
#5F124C #5F4C12 #125F25 #12265F
square
#5F124C #5F4C12 #125F25 #12265F
split-complementary
#5F124C #265F12 #125F4C
monochromatic
#1A0515 #2C0823 #5F124C #921C75 #C6259E

Accessibility & contrast

On white

12.52
#5F124C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F124C
12.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F124C#FFFFFF#000000##FFFFFF
##5F124C1.0012.521.6812.52
#FFFFFF12.521.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#182C4E
Deuteranopia (green-blind)
#31384A
Tritanopia (blue-blind)
#65152D
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #5f124c;
/* rgb */ color: rgb(95, 18, 76);
/* oklch */ color: oklch(34.0% 0.127 340.0);
Tailwind
colors: {
  custom: {
    50: '#8f597e',
    500: '#5f124c',
    950: '#000000',
  },
}
SCSS
$custom: #5f124c;
$custom-light: #8f597e;
$custom-dark: #000000;
JSON
{
  "hex": "#5f124c",
  "rgb": {
    "r": 95,
    "g": 18,
    "b": 76
  },
  "hsl": {
    "h": 314.805,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.3404,
    "c": 0.12677,
    "h": 340
  },
  "luminance": 0.03387
}

Semantic roles & 50–950 ramp

primary
#5F124C
secondary
#36974E
accent
#EB683D
background
#F9F5F7
surface
#F1E9EE
border
#CBC5C9
text
#0D040A
muted
#7E797C

Preview Lab

Preview with #5F124C

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

Preview Lab → · Contrast checker → · Palette generator →

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