#5F0C4A#5F0C4A

#5F0C4A is a dark, vivid pink. Relative luminance 0.032; OKLCH L 33.5% C 0.132 H 341.1°. Best body text is #FFFFFF at 12.82:1 contrast (WCAG AA passes).

Color values

HEX#5F0C4A
RGBrgb(95, 12, 74)
HSLhsl(315, 78%, 21%)
HSVhsv(315, 87%, 37%)
CMYKcmyk(0%, 87.4%, 22.1%, 62.7%)
CIE-LABlab(20.79, 41.45, -15.81)
CIE-LCHlch(20.79, 44.37, 339.13°)
OKLaboklab(33.47% 0.1245 -0.0426)
OKLCHoklch(33.47% 0.132 341.1)
XYZxyz(6.0870, 3.1909, 6.7726)
Luminance0.0319 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F0C4A #0C5F21
analogous
#4A0C5F #5F0C4A #5F0C20
triadic
#5F0C4A #4A5F0C #0C4A5F
tetradic
#5F0C4A #5F4A0C #0C5F21 #0C205F
square
#5F0C4A #5F4A0C #0C5F21 #0C205F
split-complementary
#5F0C4A #205F0C #0C5F4A
monochromatic
#1B0315 #290520 #5F0C4A #951374 #CC1A9F

Accessibility & contrast

On white

12.82
#5F0C4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F0C4A
12.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F0C4A#FFFFFF#000000##FFFFFF
##5F0C4A1.0012.821.6412.82
#FFFFFF12.821.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#152A4C
Deuteranopia (green-blind)
#303748
Tritanopia (blue-blind)
#650E2B
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #5f0c4a;
/* rgb */ color: rgb(95, 12, 74);
/* oklch */ color: oklch(33.5% 0.132 341.1);
Tailwind
colors: {
  custom: {
    50: '#90577c',
    500: '#5f0c4a',
    950: '#000000',
  },
}
SCSS
$custom: #5f0c4a;
$custom-light: #90577c;
$custom-dark: #000000;
JSON
{
  "hex": "#5f0c4a",
  "rgb": {
    "r": 95,
    "g": 12,
    "b": 74
  },
  "hsl": {
    "h": 315.181,
    "s": 77.57,
    "l": 20.98
  },
  "oklch": {
    "l": 0.33471,
    "c": 0.13156,
    "h": 341.1
  },
  "luminance": 0.0319
}

Semantic roles & 50–950 ramp

primary
#5F0C4A
secondary
#2D9949
accent
#F46434
background
#F9F5F7
surface
#F1E9EE
border
#CBC5C9
text
#0D0409
muted
#7E797B

Preview Lab

Preview with #5F0C4A

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

Preview Lab → · Contrast checker → · Palette generator →

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