#5F0C4C#5F0C4C

#5F0C4C is a dark, vivid pink. Relative luminance 0.032; OKLCH L 33.6% C 0.133 H 339.7°. Best body text is #FFFFFF at 12.78:1 contrast (WCAG AA passes).

Color values

HEX#5F0C4C
RGBrgb(95, 12, 76)
HSLhsl(314, 78%, 21%)
HSVhsv(314, 87%, 37%)
CMYKcmyk(0%, 87.4%, 20%, 62.7%)
CIE-LABlab(20.90, 41.75, -17.01)
CIE-LCHlch(20.90, 45.08, 337.83°)
OKLaboklab(33.58% 0.1247 -0.046)
OKLCHoklch(33.58% 0.133 339.7)
XYZxyz(6.1555, 3.2183, 7.1331)
Luminance0.0322 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F0C4C #0C5F1F
analogous
#480C5F #5F0C4C #5F0C22
triadic
#5F0C4C #4C5F0C #0C4C5F
tetradic
#5F0C4C #5F480C #0C5F1F #0C225F
square
#5F0C4C #5F480C #0C5F1F #0C225F
split-complementary
#5F0C4C #225F0C #0C5F48
monochromatic
#1B0316 #290521 #5F0C4C #951377 #CC1AA3

Accessibility & contrast

On white

12.78
#5F0C4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#5F0C4C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F0C4C
12.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F0C4C#FFFFFF#000000##FFFFFF
##5F0C4C1.0012.781.6412.78
#FFFFFF12.781.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#132A4E
Deuteranopia (green-blind)
#2F374A
Tritanopia (blue-blind)
#65102C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #5f0c4c;
/* rgb */ color: rgb(95, 12, 76);
/* oklch */ color: oklch(33.6% 0.133 339.7);
Tailwind
colors: {
  custom: {
    50: '#90577e',
    500: '#5f0c4c',
    950: '#000000',
  },
}
SCSS
$custom: #5f0c4c;
$custom-light: #90577e;
$custom-dark: #000000;
JSON
{
  "hex": "#5f0c4c",
  "rgb": {
    "r": 95,
    "g": 12,
    "b": 76
  },
  "hsl": {
    "h": 313.735,
    "s": 77.57,
    "l": 20.98
  },
  "oklch": {
    "l": 0.33581,
    "c": 0.13294,
    "h": 339.7
  },
  "luminance": 0.03218
}

Semantic roles & 50–950 ramp

primary
#5F0C4C
secondary
#2D9946
accent
#F46034
background
#F9F5F7
surface
#F1E9EE
border
#CBC5C9
text
#0D040A
muted
#7E797C

Preview Lab

Preview with #5F0C4C

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

Preview Lab → · Contrast checker → · Palette generator →

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