#5F1250#5F1250

#5F1250 is a dark, vivid pink. Relative luminance 0.034; OKLCH L 34.3% C 0.130 H 337.3°. Best body text is #FFFFFF at 12.43:1 contrast (WCAG AA passes).

Color values

HEX#5F1250
RGBrgb(95, 18, 80)
HSLhsl(312, 68%, 22%)
HSVhsv(312, 81%, 37%)
CMYKcmyk(0%, 81.1%, 15.8%, 62.7%)
CIE-LABlab(21.75, 40.55, -18.40)
CIE-LCHlch(21.75, 44.52, 335.60°)
OKLaboklab(34.26% 0.1197 -0.05)
OKLCHoklch(34.26% 0.13 337.3)
XYZxyz(6.3837, 3.4453, 7.9167)
Luminance0.0345 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1250 #125F21
analogous
#48125F #5F1250 #5F122A
triadic
#5F1250 #505F12 #12505F
tetradic
#5F1250 #5F4812 #125F21 #122A5F
square
#5F1250 #5F4812 #125F21 #122A5F
split-complementary
#5F1250 #2A5F12 #125F48
monochromatic
#1A0516 #2C0825 #5F1250 #921C7B #C625A7

Accessibility & contrast

On white

12.43
#5F1250 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F1250
12.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1250#FFFFFF#000000##FFFFFF
##5F12501.0012.431.6912.43
#FFFFFF12.431.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#152D52
Deuteranopia (green-blind)
#2F384E
Tritanopia (blue-blind)
#651730
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #5f1250;
/* rgb */ color: rgb(95, 18, 80);
/* oklch */ color: oklch(34.3% 0.130 337.3);
Tailwind
colors: {
  custom: {
    50: '#8f5a81',
    500: '#5f1250',
    950: '#000000',
  },
}
SCSS
$custom: #5f1250;
$custom-light: #8f5a81;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1250",
  "rgb": {
    "r": 95,
    "g": 18,
    "b": 80
  },
  "hsl": {
    "h": 311.688,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.34261,
    "c": 0.12972,
    "h": 337.3
  },
  "luminance": 0.03445
}

Semantic roles & 50–950 ramp

primary
#5F1250
secondary
#369749
accent
#EB5F3D
background
#F9F5F7
surface
#F1E9EE
border
#CBC5C9
text
#0D040A
muted
#7E797C

Preview Lab

Preview with #5F1250

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

Preview Lab → · Contrast checker → · Palette generator →

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