#5F0C4E#5F0C4E

#5F0C4E is a dark, vivid pink. Relative luminance 0.032; OKLCH L 33.7% C 0.134 H 338.4°. Best body text is #FFFFFF at 12.73:1 contrast (WCAG AA passes).

Color values

HEX#5F0C4E
RGBrgb(95, 12, 78)
HSLhsl(312, 78%, 21%)
HSVhsv(312, 87%, 37%)
CMYKcmyk(0%, 87.4%, 17.9%, 62.7%)
CIE-LABlab(21.01, 42.05, -18.20)
CIE-LCHlch(21.01, 45.82, 336.60°)
OKLaboklab(33.69% 0.1249 -0.0494)
OKLCHoklch(33.69% 0.134 338.4)
XYZxyz(6.2261, 3.2465, 7.5050)
Luminance0.0325 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F0C4E #0C5F1D
analogous
#460C5F #5F0C4E #5F0C24
triadic
#5F0C4E #4E5F0C #0C4E5F
tetradic
#5F0C4E #5F460C #0C5F1D #0C245F
square
#5F0C4E #5F460C #0C5F1D #0C245F
split-complementary
#5F0C4E #245F0C #0C5F46
monochromatic
#1B0316 #290521 #5F0C4E #95137B #CC1AA7

Accessibility & contrast

On white

12.73
#5F0C4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F0C4E
12.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F0C4E#FFFFFF#000000##FFFFFF
##5F0C4E1.0012.731.6512.73
#FFFFFF12.731.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#112A50
Deuteranopia (green-blind)
#2E374C
Tritanopia (blue-blind)
#65112D
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #5f0c4e;
/* rgb */ color: rgb(95, 12, 78);
/* oklch */ color: oklch(33.7% 0.134 338.4);
Tailwind
colors: {
  custom: {
    50: '#90577f',
    500: '#5f0c4e',
    950: '#000000',
  },
}
SCSS
$custom: #5f0c4e;
$custom-light: #90577f;
$custom-dark: #000000;
JSON
{
  "hex": "#5f0c4e",
  "rgb": {
    "r": 95,
    "g": 12,
    "b": 78
  },
  "hsl": {
    "h": 312.289,
    "s": 77.57,
    "l": 20.98
  },
  "oklch": {
    "l": 0.33693,
    "c": 0.13436,
    "h": 338.4
  },
  "luminance": 0.03246
}

Semantic roles & 50–950 ramp

primary
#5F0C4E
secondary
#2D9944
accent
#F45B34
background
#F9F5F7
surface
#F1E9EE
border
#CBC5C9
text
#0D040A
muted
#7E797C

Preview Lab

Preview with #5F0C4E

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

Preview Lab → · Contrast checker → · Palette generator →

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