#5F1952#5F1952

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

Color values

HEX#5F1952
RGBrgb(95, 25, 82)
HSLhsl(311, 58%, 24%)
HSVhsv(311, 74%, 37%)
CMYKcmyk(0%, 73.7%, 13.7%, 62.7%)
CIE-LABlab(22.79, 38.23, -18.12)
CIE-LCHlch(22.79, 42.31, 334.64°)
OKLaboklab(35.05% 0.112 -0.0493)
OKLCHoklch(35.05% 0.122 336.2)
XYZxyz(6.5900, 3.7379, 8.3554)
Luminance0.0374 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1952 #195F26
analogous
#49195F #5F1952 #5F192F
triadic
#5F1952 #525F19 #19525F
tetradic
#5F1952 #5F4919 #195F26 #192F5F
square
#5F1952 #5F4919 #195F26 #192F5F
split-complementary
#5F1952 #2F5F19 #195F49
monochromatic
#180615 #2F0C28 #5F1952 #8F267C #C032A6

Accessibility & contrast

On white

12.02
#5F1952 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#5F1952 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1952
12.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1952#FFFFFF#000000##FFFFFF
##5F19521.0012.021.7512.02
#FFFFFF12.021.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.021.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f1952;
/* rgb */ color: rgb(95, 25, 82);
/* oklch */ color: oklch(35.0% 0.122 336.2);
Tailwind
colors: {
  custom: {
    50: '#8f5d83',
    500: '#5f1952',
    950: '#000000',
  },
}
SCSS
$custom: #5f1952;
$custom-light: #8f5d83;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1952",
  "rgb": {
    "r": 95,
    "g": 25,
    "b": 82
  },
  "hsl": {
    "h": 311.143,
    "s": 58.333,
    "l": 23.529
  },
  "oklch": {
    "l": 0.35047,
    "c": 0.12241,
    "h": 336.2
  },
  "luminance": 0.03737
}

Semantic roles & 50–950 ramp

primary
#5F1952
secondary
#3F954F
accent
#E26346
background
#F9F5F8
surface
#F1E9EF
border
#CBC5CA
text
#0D040A
muted
#7E797C

Preview Lab

Preview with #5F1952

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

Preview Lab → · Contrast checker → · Palette generator →

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