#5F0C47#5F0C47

#5F0C47 is a dark, vivid pink. Relative luminance 0.032; OKLCH L 33.3% C 0.130 H 343.2°. Best body text is #FFFFFF at 12.88:1 contrast (WCAG AA passes).

Color values

HEX#5F0C47
RGBrgb(95, 12, 71)
HSLhsl(317, 78%, 21%)
HSVhsv(317, 87%, 37%)
CMYKcmyk(0%, 87.4%, 25.3%, 62.7%)
CIE-LABlab(20.64, 41.03, -13.99)
CIE-LCHlch(20.64, 43.34, 341.17°)
OKLaboklab(33.31% 0.124 -0.0375)
OKLCHoklch(33.31% 0.13 343.2)
XYZxyz(5.9884, 3.1514, 6.2529)
Luminance0.0315 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F0C47 #0C5F24
analogous
#4D0C5F #5F0C47 #5F0C1E
triadic
#5F0C47 #475F0C #0C475F
tetradic
#5F0C47 #5F4D0C #0C5F24 #0C1E5F
square
#5F0C47 #5F4D0C #0C5F24 #0C1E5F
split-complementary
#5F0C47 #1E5F0C #0C5F4D
monochromatic
#1B0314 #29051E #5F0C47 #951370 #CC1A98

Accessibility & contrast

On white

12.88
#5F0C47 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#5F0C47 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F0C47
12.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F0C47#FFFFFF#000000##FFFFFF
##5F0C471.0012.881.6312.88
#FFFFFF12.881.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#172948
Deuteranopia (green-blind)
#313645
Tritanopia (blue-blind)
#660C29
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #5f0c47;
/* rgb */ color: rgb(95, 12, 71);
/* oklch */ color: oklch(33.3% 0.130 343.2);
Tailwind
colors: {
  custom: {
    50: '#90577a',
    500: '#5f0c47',
    950: '#000000',
  },
}
SCSS
$custom: #5f0c47;
$custom-light: #90577a;
$custom-dark: #000000;
JSON
{
  "hex": "#5f0c47",
  "rgb": {
    "r": 95,
    "g": 12,
    "b": 71
  },
  "hsl": {
    "h": 317.349,
    "s": 77.57,
    "l": 20.98
  },
  "oklch": {
    "l": 0.33312,
    "c": 0.12953,
    "h": 343.2
  },
  "luminance": 0.03151
}

Semantic roles & 50–950 ramp

primary
#5F0C47
secondary
#2D994D
accent
#F46B34
background
#F9F5F7
surface
#F1E9ED
border
#CBC5C8
text
#0D0409
muted
#7E797B

Preview Lab

Preview with #5F0C47

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

Preview Lab → · Contrast checker → · Palette generator →

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