#5F1852#5F1852

#5F1852 is a dark, vivid pink. Relative luminance 0.037; OKLCH L 34.9% C 0.124 H 336.2°. Best body text is #FFFFFF at 12.08:1 contrast (WCAG AA passes).

Color values

HEX#5F1852
RGBrgb(95, 24, 82)
HSLhsl(311, 60%, 23%)
HSVhsv(311, 75%, 37%)
CMYKcmyk(0%, 74.7%, 13.7%, 62.7%)
CIE-LABlab(22.64, 38.64, -18.35)
CIE-LCHlch(22.64, 42.77, 334.60°)
OKLaboklab(34.94% 0.1133 -0.0499)
OKLCHoklch(34.94% 0.124 336.2)
XYZxyz(6.5690, 3.6959, 8.3484)
Luminance0.0369 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1852 #185F25
analogous
#48185F #5F1852 #5F182E
triadic
#5F1852 #525F18 #18525F
tetradic
#5F1852 #5F4818 #185F25 #182E5F
square
#5F1852 #5F4818 #185F25 #182E5F
split-complementary
#5F1852 #2E5F18 #185F48
monochromatic
#180615 #2E0C28 #5F1852 #90247C #C131A6

Accessibility & contrast

On white

12.08
#5F1852 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#5F1852 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1852
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1852#FFFFFF#000000##FFFFFF
##5F18521.0012.081.7412.08
#FFFFFF12.081.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#192F54
Deuteranopia (green-blind)
#313A50
Tritanopia (blue-blind)
#641D33
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5f1852;
/* rgb */ color: rgb(95, 24, 82);
/* oklch */ color: oklch(34.9% 0.124 336.2);
Tailwind
colors: {
  custom: {
    50: '#8f5c83',
    500: '#5f1852',
    950: '#000000',
  },
}
SCSS
$custom: #5f1852;
$custom-light: #8f5c83;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1852",
  "rgb": {
    "r": 95,
    "g": 24,
    "b": 82
  },
  "hsl": {
    "h": 310.986,
    "s": 59.664,
    "l": 23.333
  },
  "oklch": {
    "l": 0.34941,
    "c": 0.12379,
    "h": 336.2
  },
  "luminance": 0.03695
}

Semantic roles & 50–950 ramp

primary
#5F1852
secondary
#3D954D
accent
#E36245
background
#F9F5F8
surface
#F1E9EF
border
#CBC5CA
text
#0D040A
muted
#7E797C

Preview Lab

Preview with #5F1852

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

Preview Lab → · Contrast checker → · Palette generator →

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