#5F1948#5F1948

#5F1948 is a dark, moderate pink. Relative luminance 0.036; OKLCH L 34.5% C 0.115 H 343.6°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#5F1948
RGBrgb(95, 25, 72)
HSLhsl(320, 58%, 24%)
HSVhsv(320, 74%, 37%)
CMYKcmyk(0%, 73.7%, 24.2%, 62.7%)
CIE-LABlab(22.29, 36.63, -12.13)
CIE-LCHlch(22.29, 38.58, 341.68°)
OKLaboklab(34.53% 0.1102 -0.0324)
OKLCHoklch(34.53% 0.115 343.6)
XYZxyz(6.2369, 3.5967, 6.4954)
Luminance0.0360 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1948 #195F30
analogous
#53195F #5F1948 #5F1925
triadic
#5F1948 #485F19 #19485F
tetradic
#5F1948 #5F5319 #195F30 #19255F
square
#5F1948 #5F5319 #195F30 #19255F
split-complementary
#5F1948 #255F19 #195F53
monochromatic
#180612 #2F0C23 #5F1948 #8F266D #C03291

Accessibility & contrast

On white

12.21
#5F1948 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#5F1948 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1948
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1948#FFFFFF#000000##FFFFFF
##5F19481.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#202E49
Deuteranopia (green-blind)
#353A46
Tritanopia (blue-blind)
#65192E
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5f1948;
/* rgb */ color: rgb(95, 25, 72);
/* oklch */ color: oklch(34.5% 0.115 343.6);
Tailwind
colors: {
  custom: {
    50: '#8f5c7b',
    500: '#5f1948',
    950: '#000000',
  },
}
SCSS
$custom: #5f1948;
$custom-light: #8f5c7b;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1948",
  "rgb": {
    "r": 95,
    "g": 25,
    "b": 72
  },
  "hsl": {
    "h": 319.714,
    "s": 58.333,
    "l": 23.529
  },
  "oklch": {
    "l": 0.34525,
    "c": 0.11488,
    "h": 343.6
  },
  "luminance": 0.03596
}

Semantic roles & 50–950 ramp

primary
#5F1948
secondary
#3F955B
accent
#E27946
background
#F9F5F7
surface
#F1E9ED
border
#CBC5C8
text
#0D0409
muted
#7E797B

Preview Lab

Preview with #5F1948

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

Preview Lab → · Contrast checker → · Palette generator →

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