#5F124F#5F124F

#5F124F is a dark, vivid pink. Relative luminance 0.034; OKLCH L 34.2% C 0.129 H 338.0°. Best body text is #FFFFFF at 12.46:1 contrast (WCAG AA passes).

Color values

HEX#5F124F
RGBrgb(95, 18, 79)
HSLhsl(312, 68%, 22%)
HSVhsv(312, 81%, 37%)
CMYKcmyk(0%, 81.1%, 16.8%, 62.7%)
CIE-LABlab(21.69, 40.39, -17.80)
CIE-LCHlch(21.69, 44.14, 336.21°)
OKLaboklab(34.21% 0.1196 -0.0483)
OKLCHoklch(34.21% 0.129 338)
XYZxyz(6.3470, 3.4306, 7.7235)
Luminance0.0343 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F124F #125F22
analogous
#49125F #5F124F #5F1228
triadic
#5F124F #4F5F12 #124F5F
tetradic
#5F124F #5F4912 #125F22 #12285F
square
#5F124F #5F4912 #125F22 #12285F
split-complementary
#5F124F #285F12 #125F49
monochromatic
#1A0515 #2C0824 #5F124F #921C7A #C625A5

Accessibility & contrast

On white

12.46
#5F124F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#5F124F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F124F
12.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F124F#FFFFFF#000000##FFFFFF
##5F124F1.0012.461.6912.46
#FFFFFF12.461.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#162C51
Deuteranopia (green-blind)
#30384D
Tritanopia (blue-blind)
#65162F
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #5f124f;
/* rgb */ color: rgb(95, 18, 79);
/* oklch */ color: oklch(34.2% 0.129 338.0);
Tailwind
colors: {
  custom: {
    50: '#8f5a80',
    500: '#5f124f',
    950: '#000000',
  },
}
SCSS
$custom: #5f124f;
$custom-light: #8f5a80;
$custom-dark: #000000;
JSON
{
  "hex": "#5f124f",
  "rgb": {
    "r": 95,
    "g": 18,
    "b": 79
  },
  "hsl": {
    "h": 312.468,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.34205,
    "c": 0.12897,
    "h": 338
  },
  "luminance": 0.0343
}

Semantic roles & 50–950 ramp

primary
#5F124F
secondary
#36974A
accent
#EB613D
background
#F9F5F7
surface
#F1E9EE
border
#CBC5C9
text
#0D040A
muted
#7E797C

Preview Lab

Preview with #5F124F

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

Preview Lab → · Contrast checker → · Palette generator →

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