#5F124E#5F124E

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

Color values

HEX#5F124E
RGBrgb(95, 18, 78)
HSLhsl(313, 68%, 22%)
HSVhsv(313, 81%, 37%)
CMYKcmyk(0%, 81.1%, 17.9%, 62.7%)
CIE-LABlab(21.64, 40.23, -17.21)
CIE-LCHlch(21.64, 43.76, 336.84°)
OKLaboklab(34.15% 0.1194 -0.0467)
OKLCHoklch(34.15% 0.128 338.7)
XYZxyz(6.3109, 3.4162, 7.5333)
Luminance0.0342 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F124E #125F23
analogous
#4A125F #5F124E #5F1227
triadic
#5F124E #4E5F12 #124E5F
tetradic
#5F124E #5F4A12 #125F23 #12275F
square
#5F124E #5F4A12 #125F23 #12275F
split-complementary
#5F124E #275F12 #125F4A
monochromatic
#1A0515 #2C0824 #5F124E #921C78 #C625A2

Accessibility & contrast

On white

12.48
#5F124E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F124E
12.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F124E#FFFFFF#000000##FFFFFF
##5F124E1.0012.481.6812.48
#FFFFFF12.481.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.481.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f124e;
/* rgb */ color: rgb(95, 18, 78);
/* oklch */ color: oklch(34.1% 0.128 338.7);
Tailwind
colors: {
  custom: {
    50: '#8f597f',
    500: '#5f124e',
    950: '#000000',
  },
}
SCSS
$custom: #5f124e;
$custom-light: #8f597f;
$custom-dark: #000000;
JSON
{
  "hex": "#5f124e",
  "rgb": {
    "r": 95,
    "g": 18,
    "b": 78
  },
  "hsl": {
    "h": 313.247,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.34149,
    "c": 0.12823,
    "h": 338.7
  },
  "luminance": 0.03416
}

Semantic roles & 50–950 ramp

primary
#5F124E
secondary
#36974B
accent
#EB633D
background
#F9F5F7
surface
#F1E9EE
border
#CBC5C9
text
#0D040A
muted
#7E797C

Preview Lab

Preview with #5F124E

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

Preview Lab → · Contrast checker → · Palette generator →

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