#5B0F4C#5B0F4C

#5B0F4C is a dark, vivid pink. Relative luminance 0.031; OKLCH L 33.1% C 0.128 H 337.6°. Best body text is #FFFFFF at 12.98:1 contrast (WCAG AA passes).

Color values

HEX#5B0F4C
RGBrgb(91, 15, 76)
HSLhsl(312, 72%, 21%)
HSVhsv(312, 84%, 36%)
CMYKcmyk(0%, 83.5%, 16.5%, 64.3%)
CIE-LABlab(20.39, 39.86, -17.85)
CIE-LCHlch(20.39, 43.68, 335.87°)
OKLaboklab(33.07% 0.1179 -0.0486)
OKLCHoklch(33.07% 0.128 337.6)
XYZxyz(5.7898, 3.0882, 7.1272)
Luminance0.0309 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B0F4C #0F5B1E
analogous
#440F5B #5B0F4C #5B0F26
triadic
#5B0F4C #4C5B0F #0F4C5B
tetradic
#5B0F4C #5B440F #0F5B1E #0F265B
square
#5B0F4C #5B440F #0F5B1E #0F265B
split-complementary
#5B0F4C #265B0F #0F5B44
monochromatic
#1A0416 #260620 #5B0F4C #901878 #C420A4

Accessibility & contrast

On white

12.98
#5B0F4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#5B0F4C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B0F4C
12.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B0F4C#FFFFFF#000000##FFFFFF
##5B0F4C1.0012.981.6212.98
#FFFFFF12.981.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#122A4E
Deuteranopia (green-blind)
#2D354A
Tritanopia (blue-blind)
#60142D
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #5b0f4c;
/* rgb */ color: rgb(91, 15, 76);
/* oklch */ color: oklch(33.1% 0.128 337.6);
Tailwind
colors: {
  custom: {
    50: '#8c587e',
    500: '#5b0f4c',
    950: '#000000',
  },
}
SCSS
$custom: #5b0f4c;
$custom-light: #8c587e;
$custom-dark: #000000;
JSON
{
  "hex": "#5b0f4c",
  "rgb": {
    "r": 91,
    "g": 15,
    "b": 76
  },
  "hsl": {
    "h": 311.842,
    "s": 71.698,
    "l": 20.784
  },
  "oklch": {
    "l": 0.33069,
    "c": 0.1275,
    "h": 337.6
  },
  "luminance": 0.03088
}

Semantic roles & 50–950 ramp

primary
#5B0F4C
secondary
#319545
accent
#EE5D39
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5B0F4C

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

Preview Lab → · Contrast checker → · Palette generator →

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