#5F1152#5F1152

#5F1152 is a dark, vivid pink. Relative luminance 0.034; OKLCH L 34.3% C 0.132 H 336.0°. Best body text is #FFFFFF at 12.44:1 contrast (WCAG AA passes).

Color values

HEX#5F1152
RGBrgb(95, 17, 82)
HSLhsl(310, 70%, 22%)
HSVhsv(310, 82%, 37%)
CMYKcmyk(0%, 82.1%, 13.7%, 62.7%)
CIE-LABlab(21.74, 41.20, -19.76)
CIE-LCHlch(21.74, 45.69, 334.38°)
OKLaboklab(34.29% 0.1209 -0.0539)
OKLCHoklch(34.29% 0.132 336)
XYZxyz(6.4429, 3.4436, 8.3064)
Luminance0.0344 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1152 #115F1E
analogous
#45115F #5F1152 #5F112B
triadic
#5F1152 #525F11 #11525F
tetradic
#5F1152 #5F4511 #115F1E #112B5F
square
#5F1152 #5F4511 #115F1E #112B5F
split-complementary
#5F1152 #2B5F11 #115F45
monochromatic
#1A0516 #2B0825 #5F1152 #931A7F #C724AC

Accessibility & contrast

On white

12.44
#5F1152 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#5F1152 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1152
12.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1152#FFFFFF#000000##FFFFFF
##5F11521.0012.441.6912.44
#FFFFFF12.441.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#122D54
Deuteranopia (green-blind)
#2E3850
Tritanopia (blue-blind)
#641730
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #5f1152;
/* rgb */ color: rgb(95, 17, 82);
/* oklch */ color: oklch(34.3% 0.132 336.0);
Tailwind
colors: {
  custom: {
    50: '#8f5983',
    500: '#5f1152',
    950: '#000000',
  },
}
SCSS
$custom: #5f1152;
$custom-light: #8f5983;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1152",
  "rgb": {
    "r": 95,
    "g": 17,
    "b": 82
  },
  "hsl": {
    "h": 310,
    "s": 69.643,
    "l": 21.961
  },
  "oklch": {
    "l": 0.34292,
    "c": 0.13235,
    "h": 336
  },
  "luminance": 0.03443
}

Semantic roles & 50–950 ramp

primary
#5F1152
secondary
#349845
accent
#EC593B
background
#F9F5F8
surface
#F1E9EF
border
#CBC5CA
text
#0D040A
muted
#7E797C

Preview Lab

Preview with #5F1152

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

Preview Lab → · Contrast checker → · Palette generator →

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