#5F0C4F#5F0C4F

#5F0C4F is a dark, vivid pink. Relative luminance 0.033; OKLCH L 33.8% C 0.135 H 337.8°. Best body text is #FFFFFF at 12.71:1 contrast (WCAG AA passes).

Color values

HEX#5F0C4F
RGBrgb(95, 12, 79)
HSLhsl(312, 78%, 21%)
HSVhsv(312, 87%, 37%)
CMYKcmyk(0%, 87.4%, 16.8%, 62.7%)
CIE-LABlab(21.06, 42.20, -18.79)
CIE-LCHlch(21.06, 46.20, 336.00°)
OKLaboklab(33.75% 0.125 -0.0511)
OKLCHoklch(33.75% 0.135 337.8)
XYZxyz(6.2622, 3.2610, 7.6953)
Luminance0.0326 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F0C4F #0C5F1C
analogous
#450C5F #5F0C4F #5F0C25
triadic
#5F0C4F #4F5F0C #0C4F5F
tetradic
#5F0C4F #5F450C #0C5F1C #0C255F
square
#5F0C4F #5F450C #0C5F1C #0C255F
split-complementary
#5F0C4F #255F0C #0C5F45
monochromatic
#1B0317 #290522 #5F0C4F #95137C #CC1AA9

Accessibility & contrast

On white

12.71
#5F0C4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#5F0C4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F0C4F
12.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F0C4F#FFFFFF#000000##FFFFFF
##5F0C4F1.0012.711.6512.71
#FFFFFF12.711.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#102B51
Deuteranopia (green-blind)
#2E374D
Tritanopia (blue-blind)
#65122E
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #5f0c4f;
/* rgb */ color: rgb(95, 12, 79);
/* oklch */ color: oklch(33.8% 0.135 337.8);
Tailwind
colors: {
  custom: {
    50: '#905780',
    500: '#5f0c4f',
    950: '#000000',
  },
}
SCSS
$custom: #5f0c4f;
$custom-light: #905780;
$custom-dark: #000000;
JSON
{
  "hex": "#5f0c4f",
  "rgb": {
    "r": 95,
    "g": 12,
    "b": 79
  },
  "hsl": {
    "h": 311.566,
    "s": 77.57,
    "l": 20.98
  },
  "oklch": {
    "l": 0.3375,
    "c": 0.13508,
    "h": 337.8
  },
  "luminance": 0.0326
}

Semantic roles & 50–950 ramp

primary
#5F0C4F
secondary
#2D9942
accent
#F45934
background
#F9F5F7
surface
#F1E9EE
border
#CBC5C9
text
#0D040A
muted
#7E797C

Preview Lab

Preview with #5F0C4F

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

Preview Lab → · Contrast checker → · Palette generator →

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