#5F0E51#5F0E51

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

Color values

HEX#5F0E51
RGBrgb(95, 14, 81)
HSLhsl(310, 74%, 21%)
HSVhsv(310, 85%, 37%)
CMYKcmyk(0%, 85.3%, 14.7%, 62.7%)
CIE-LABlab(21.36, 41.96, -19.67)
CIE-LCHlch(21.36, 46.34, 334.88°)
OKLaboklab(34% 0.1235 -0.0537)
OKLCHoklch(34% 0.135 336.5)
XYZxyz(6.3617, 3.3417, 8.0930)
Luminance0.0334 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F0E51 #0E5F1C
analogous
#450E5F #5F0E51 #5F0E29
triadic
#5F0E51 #515F0E #0E515F
tetradic
#5F0E51 #5F450E #0E5F1C #0E295F
square
#5F0E51 #5F450E #0E5F1C #0E295F
split-complementary
#5F0E51 #295F0E #0E5F45
monochromatic
#1B0417 #2A0624 #5F0E51 #94167E #CA1EAC

Accessibility & contrast

On white

12.59
#5F0E51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#5F0E51 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F0E51
12.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F0E51#FFFFFF#000000##FFFFFF
##5F0E511.0012.591.6712.59
#FFFFFF12.591.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#102C53
Deuteranopia (green-blind)
#2E384F
Tritanopia (blue-blind)
#64152F
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #5f0e51;
/* rgb */ color: rgb(95, 14, 81);
/* oklch */ color: oklch(34.0% 0.135 336.5);
Tailwind
colors: {
  custom: {
    50: '#905882',
    500: '#5f0e51',
    950: '#000000',
  },
}
SCSS
$custom: #5f0e51;
$custom-light: #905882;
$custom-dark: #000000;
JSON
{
  "hex": "#5f0e51",
  "rgb": {
    "r": 95,
    "g": 14,
    "b": 81
  },
  "hsl": {
    "h": 310.37,
    "s": 74.312,
    "l": 21.373
  },
  "oklch": {
    "l": 0.34004,
    "c": 0.13468,
    "h": 336.5
  },
  "luminance": 0.03341
}

Semantic roles & 50–950 ramp

primary
#5F0E51
secondary
#309942
accent
#F15737
background
#F9F5F7
surface
#F1E9EE
border
#CBC5C9
text
#0D040A
muted
#7E797C

Preview Lab

Preview with #5F0E51

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

Preview Lab → · Contrast checker → · Palette generator →

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