#5F124B#5F124B

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

Color values

HEX#5F124B
RGBrgb(95, 18, 75)
HSLhsl(316, 68%, 22%)
HSVhsv(316, 81%, 37%)
CMYKcmyk(0%, 81.1%, 21.1%, 62.7%)
CIE-LABlab(21.48, 39.77, -15.42)
CIE-LCHlch(21.48, 42.65, 338.81°)
OKLaboklab(33.99% 0.119 -0.0416)
OKLCHoklch(33.99% 0.126 340.7)
XYZxyz(6.2058, 3.3741, 6.9797)
Luminance0.0337 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F124B #125F26
analogous
#4D125F #5F124B #5F1225
triadic
#5F124B #4B5F12 #124B5F
tetradic
#5F124B #5F4D12 #125F26 #12255F
square
#5F124B #5F4D12 #125F26 #12255F
split-complementary
#5F124B #255F12 #125F4D
monochromatic
#1A0514 #2C0822 #5F124B #921C74 #C6259C

Accessibility & contrast

On white

12.54
#5F124B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#5F124B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F124B
12.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F124B#FFFFFF#000000##FFFFFF
##5F124B1.0012.541.6712.54
#FFFFFF12.541.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#182C4D
Deuteranopia (green-blind)
#313849
Tritanopia (blue-blind)
#65142D
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #5f124b;
/* rgb */ color: rgb(95, 18, 75);
/* oklch */ color: oklch(34.0% 0.126 340.7);
Tailwind
colors: {
  custom: {
    50: '#90597d',
    500: '#5f124b',
    950: '#000000',
  },
}
SCSS
$custom: #5f124b;
$custom-light: #90597d;
$custom-dark: #000000;
JSON
{
  "hex": "#5f124b",
  "rgb": {
    "r": 95,
    "g": 18,
    "b": 75
  },
  "hsl": {
    "h": 315.584,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.33987,
    "c": 0.12605,
    "h": 340.7
  },
  "luminance": 0.03374
}

Semantic roles & 50–950 ramp

primary
#5F124B
secondary
#36974F
accent
#EB6A3D
background
#F9F5F7
surface
#F1E9EE
border
#CBC5C9
text
#0D0409
muted
#7E797B

Preview Lab

Preview with #5F124B

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

Preview Lab → · Contrast checker → · Palette generator →

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