#5F1150#5F1150

#5F1150 is a dark, vivid pink. Relative luminance 0.034; OKLCH L 34.2% C 0.131 H 337.3°. Best body text is #FFFFFF at 12.48:1 contrast (WCAG AA passes).

Color values

HEX#5F1150
RGBrgb(95, 17, 80)
HSLhsl(312, 70%, 22%)
HSVhsv(312, 82%, 37%)
CMYKcmyk(0%, 82.1%, 15.8%, 62.7%)
CIE-LABlab(21.63, 40.88, -18.58)
CIE-LCHlch(21.63, 44.90, 335.56°)
OKLaboklab(34.18% 0.1207 -0.0505)
OKLCHoklch(34.18% 0.131 337.3)
XYZxyz(6.3679, 3.4136, 7.9114)
Luminance0.0341 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1150 #115F20
analogous
#47115F #5F1150 #5F1129
triadic
#5F1150 #505F11 #11505F
tetradic
#5F1150 #5F4711 #115F20 #11295F
square
#5F1150 #5F4711 #115F20 #11295F
split-complementary
#5F1150 #295F11 #115F47
monochromatic
#1A0516 #2B0824 #5F1150 #931A7C #C724A7

Accessibility & contrast

On white

12.48
#5F1150 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#5F1150 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1150
12.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1150#FFFFFF#000000##FFFFFF
##5F11501.0012.481.6812.48
#FFFFFF12.481.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#142C52
Deuteranopia (green-blind)
#2F384E
Tritanopia (blue-blind)
#65162F
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #5f1150;
/* rgb */ color: rgb(95, 17, 80);
/* oklch */ color: oklch(34.2% 0.131 337.3);
Tailwind
colors: {
  custom: {
    50: '#8f5981',
    500: '#5f1150',
    950: '#000000',
  },
}
SCSS
$custom: #5f1150;
$custom-light: #8f5981;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1150",
  "rgb": {
    "r": 95,
    "g": 17,
    "b": 80
  },
  "hsl": {
    "h": 311.538,
    "s": 69.643,
    "l": 21.961
  },
  "oklch": {
    "l": 0.34177,
    "c": 0.13084,
    "h": 337.3
  },
  "luminance": 0.03413
}

Semantic roles & 50–950 ramp

primary
#5F1150
secondary
#349847
accent
#EC5D3B
background
#F9F5F7
surface
#F1E9EE
border
#CBC5C9
text
#0D040A
muted
#7E797C

Preview Lab

Preview with #5F1150

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

Preview Lab → · Contrast checker → · Palette generator →

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