#5F1252#5F1252

#5F1252 is a dark, vivid pink. Relative luminance 0.035; OKLCH L 34.4% C 0.131 H 336.0°. Best body text is #FFFFFF at 12.39:1 contrast (WCAG AA passes).

Color values

HEX#5F1252
RGBrgb(95, 18, 82)
HSLhsl(310, 68%, 22%)
HSVhsv(310, 81%, 37%)
CMYKcmyk(0%, 81.1%, 13.7%, 62.7%)
CIE-LABlab(21.85, 40.87, -19.57)
CIE-LCHlch(21.85, 45.31, 334.41°)
OKLaboklab(34.38% 0.1199 -0.0534)
OKLCHoklch(34.38% 0.131 336)
XYZxyz(6.4587, 3.4753, 8.3117)
Luminance0.0348 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1252 #125F1F
analogous
#46125F #5F1252 #5F122C
triadic
#5F1252 #525F12 #12525F
tetradic
#5F1252 #5F4612 #125F1F #122C5F
square
#5F1252 #5F4612 #125F1F #122C5F
split-complementary
#5F1252 #2C5F12 #125F46
monochromatic
#1A0516 #2C0826 #5F1252 #921C7E #C625AB

Accessibility & contrast

On white

12.39
#5F1252 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#5F1252 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1252
12.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1252#FFFFFF#000000##FFFFFF
##5F12521.0012.391.7012.39
#FFFFFF12.391.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#132D54
Deuteranopia (green-blind)
#2F3850
Tritanopia (blue-blind)
#641831
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #5f1252;
/* rgb */ color: rgb(95, 18, 82);
/* oklch */ color: oklch(34.4% 0.131 336.0);
Tailwind
colors: {
  custom: {
    50: '#8f5a83',
    500: '#5f1252',
    950: '#000000',
  },
}
SCSS
$custom: #5f1252;
$custom-light: #8f5a83;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1252",
  "rgb": {
    "r": 95,
    "g": 18,
    "b": 82
  },
  "hsl": {
    "h": 310.13,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.34375,
    "c": 0.13124,
    "h": 336
  },
  "luminance": 0.03475
}

Semantic roles & 50–950 ramp

primary
#5F1252
secondary
#369746
accent
#EB5A3D
background
#F9F5F8
surface
#F1E9EF
border
#CBC5CA
text
#0D040A
muted
#7E797C

Preview Lab

Preview with #5F1252

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

Preview Lab → · Contrast checker → · Palette generator →

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