#5B1950#5B1950

#5B1950 is a dark, moderate pink. Relative luminance 0.035; OKLCH L 34.3% C 0.118 H 335.2°. Best body text is #FFFFFF at 12.35:1 contrast (WCAG AA passes).

Color values

HEX#5B1950
RGBrgb(91, 25, 80)
HSLhsl(310, 57%, 23%)
HSVhsv(310, 73%, 36%)
CMYKcmyk(0%, 72.5%, 12.1%, 64.3%)
CIE-LABlab(21.94, 36.76, -18.15)
CIE-LCHlch(21.94, 40.99, 333.72°)
OKLaboklab(34.26% 0.1071 -0.0495)
OKLCHoklch(34.26% 0.118 335.2)
XYZxyz(6.1100, 3.4991, 7.9415)
Luminance0.0350 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1950 #195B24
analogous
#45195B #5B1950 #5B192F
triadic
#5B1950 #505B19 #19505B
tetradic
#5B1950 #5B4519 #195B24 #192F5B
square
#5B1950 #5B4519 #195B24 #192F5B
split-complementary
#5B1950 #2F5B19 #195B45
monochromatic
#180715 #2B0C26 #5B1950 #8B267A #BB33A4

Accessibility & contrast

On white

12.35
#5B1950 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#5B1950 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1950
12.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1950#FFFFFF#000000##FFFFFF
##5B19501.0012.351.7012.35
#FFFFFF12.351.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#192E52
Deuteranopia (green-blind)
#2F384E
Tritanopia (blue-blind)
#601E32
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5b1950;
/* rgb */ color: rgb(91, 25, 80);
/* oklch */ color: oklch(34.3% 0.118 335.2);
Tailwind
colors: {
  custom: {
    50: '#8c5c81',
    500: '#5b1950',
    950: '#000000',
  },
}
SCSS
$custom: #5b1950;
$custom-light: #8c5c81;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1950",
  "rgb": {
    "r": 91,
    "g": 25,
    "b": 80
  },
  "hsl": {
    "h": 310,
    "s": 56.897,
    "l": 22.745
  },
  "oklch": {
    "l": 0.34257,
    "c": 0.11801,
    "h": 335.2
  },
  "luminance": 0.03499
}

Semantic roles & 50–950 ramp

primary
#5B1950
secondary
#3F914C
accent
#E06148
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5B1950

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

Preview Lab → · Contrast checker → · Palette generator →

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