#5F1946#5F1946

#5F1946 is a dark, moderate pink. Relative luminance 0.036; OKLCH L 34.4% C 0.114 H 345.2°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#5F1946
RGBrgb(95, 25, 70)
HSLhsl(321, 58%, 24%)
HSVhsv(321, 74%, 37%)
CMYKcmyk(0%, 73.7%, 26.3%, 62.7%)
CIE-LABlab(22.20, 36.33, -10.91)
CIE-LCHlch(22.20, 37.93, 343.29°)
OKLaboklab(34.43% 0.1097 -0.029)
OKLCHoklch(34.43% 0.114 345.2)
XYZxyz(6.1727, 3.5710, 6.1574)
Luminance0.0357 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1946 #195F32
analogous
#55195F #5F1946 #5F1923
triadic
#5F1946 #465F19 #19465F
tetradic
#5F1946 #5F5519 #195F32 #19235F
square
#5F1946 #5F5519 #195F32 #19235F
split-complementary
#5F1946 #235F19 #195F55
monochromatic
#180612 #2F0C22 #5F1946 #8F266A #C0328D

Accessibility & contrast

On white

12.25
#5F1946 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#5F1946 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1946
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1946#FFFFFF#000000##FFFFFF
##5F19461.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#212E47
Deuteranopia (green-blind)
#363944
Tritanopia (blue-blind)
#66182D
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5f1946;
/* rgb */ color: rgb(95, 25, 70);
/* oklch */ color: oklch(34.4% 0.114 345.2);
Tailwind
colors: {
  custom: {
    50: '#8f5c79',
    500: '#5f1946',
    950: '#000000',
  },
}
SCSS
$custom: #5f1946;
$custom-light: #8f5c79;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1946",
  "rgb": {
    "r": 95,
    "g": 25,
    "b": 70
  },
  "hsl": {
    "h": 321.429,
    "s": 58.333,
    "l": 23.529
  },
  "oklch": {
    "l": 0.34429,
    "c": 0.1135,
    "h": 345.2
  },
  "luminance": 0.0357
}

Semantic roles & 50–950 ramp

primary
#5F1946
secondary
#3F955E
accent
#E27E46
background
#F9F5F7
surface
#F1E9ED
border
#CBC5C8
text
#0D0409
muted
#7E797B

Preview Lab

Preview with #5F1946

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

Preview Lab → · Contrast checker → · Palette generator →

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