#5F1246#5F1246

#5F1246 is a dark, vivid pink. Relative luminance 0.033; OKLCH L 33.7% C 0.123 H 344.4°. Best body text is #FFFFFF at 12.64:1 contrast (WCAG AA passes).

Color values

HEX#5F1246
RGBrgb(95, 18, 70)
HSLhsl(319, 68%, 22%)
HSVhsv(319, 81%, 37%)
CMYKcmyk(0%, 81.1%, 26.3%, 62.7%)
CIE-LABlab(21.24, 39.03, -12.38)
CIE-LCHlch(21.24, 40.95, 342.40°)
OKLaboklab(33.73% 0.1181 -0.033)
OKLCHoklch(33.73% 0.123 344.4)
XYZxyz(6.0414, 3.3084, 6.1136)
Luminance0.0331 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1246 #125F2B
analogous
#52125F #5F1246 #5F121F
triadic
#5F1246 #465F12 #12465F
tetradic
#5F1246 #5F5212 #125F2B #121F5F
square
#5F1246 #5F5212 #125F2B #121F5F
split-complementary
#5F1246 #1F5F12 #125F52
monochromatic
#1A0513 #2C0820 #5F1246 #921C6C #C62592

Accessibility & contrast

On white

12.64
#5F1246 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#5F1246 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1246
12.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1246#FFFFFF#000000##FFFFFF
##5F12461.0012.641.6612.64
#FFFFFF12.641.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B2B47
Deuteranopia (green-blind)
#333844
Tritanopia (blue-blind)
#66112A
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #5f1246;
/* rgb */ color: rgb(95, 18, 70);
/* oklch */ color: oklch(33.7% 0.123 344.4);
Tailwind
colors: {
  custom: {
    50: '#905979',
    500: '#5f1246',
    950: '#000000',
  },
}
SCSS
$custom: #5f1246;
$custom-light: #905979;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1246",
  "rgb": {
    "r": 95,
    "g": 18,
    "b": 70
  },
  "hsl": {
    "h": 319.481,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.33729,
    "c": 0.12261,
    "h": 344.4
  },
  "luminance": 0.03308
}

Semantic roles & 50–950 ramp

primary
#5F1246
secondary
#369755
accent
#EB753D
background
#F9F5F7
surface
#F1E9ED
border
#CBC5C8
text
#0D0409
muted
#7E797B

Preview Lab

Preview with #5F1246

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

Preview Lab → · Contrast checker → · Palette generator →

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