#5B0F4A#5B0F4A

#5B0F4A is a dark, vivid pink. Relative luminance 0.031; OKLCH L 33.0% C 0.126 H 339.0°. Best body text is #FFFFFF at 13.03:1 contrast (WCAG AA passes).

Color values

HEX#5B0F4A
RGBrgb(91, 15, 74)
HSLhsl(313, 72%, 21%)
HSVhsv(313, 84%, 36%)
CMYKcmyk(0%, 83.5%, 18.7%, 64.3%)
CIE-LABlab(20.29, 39.55, -16.66)
CIE-LCHlch(20.29, 42.92, 337.16°)
OKLaboklab(32.96% 0.1177 -0.0451)
OKLCHoklch(32.96% 0.126 339)
XYZxyz(5.7214, 3.0608, 6.7667)
Luminance0.0306 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B0F4A #0F5B20
analogous
#460F5B #5B0F4A #5B0F24
triadic
#5B0F4A #4A5B0F #0F4A5B
tetradic
#5B0F4A #5B460F #0F5B20 #0F245B
square
#5B0F4A #5B460F #0F5B20 #0F245B
split-complementary
#5B0F4A #245B0F #0F5B46
monochromatic
#1A0415 #26061F #5B0F4A #901875 #C4209F

Accessibility & contrast

On white

13.03
#5B0F4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#5B0F4A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B0F4A
13.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B0F4A#FFFFFF#000000##FFFFFF
##5B0F4A1.0013.031.6113.03
#FFFFFF13.031.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#14294C
Deuteranopia (green-blind)
#2E3548
Tritanopia (blue-blind)
#61132B
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #5b0f4a;
/* rgb */ color: rgb(91, 15, 74);
/* oklch */ color: oklch(33.0% 0.126 339.0);
Tailwind
colors: {
  custom: {
    50: '#8c577c',
    500: '#5b0f4a',
    950: '#000000',
  },
}
SCSS
$custom: #5b0f4a;
$custom-light: #8c577c;
$custom-dark: #000000;
JSON
{
  "hex": "#5b0f4a",
  "rgb": {
    "r": 91,
    "g": 15,
    "b": 74
  },
  "hsl": {
    "h": 313.421,
    "s": 71.698,
    "l": 20.784
  },
  "oklch": {
    "l": 0.32956,
    "c": 0.12602,
    "h": 339
  },
  "luminance": 0.0306
}

Semantic roles & 50–950 ramp

primary
#5B0F4A
secondary
#319547
accent
#EE6239
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C0409
muted
#7D797B

Preview Lab

Preview with #5B0F4A

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

Preview Lab → · Contrast checker → · Palette generator →

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