#5B0F4B#5B0F4B

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

Color values

HEX#5B0F4B
RGBrgb(91, 15, 75)
HSLhsl(313, 72%, 21%)
HSVhsv(313, 84%, 36%)
CMYKcmyk(0%, 83.5%, 17.6%, 64.3%)
CIE-LABlab(20.34, 39.71, -17.26)
CIE-LCHlch(20.34, 43.29, 336.51°)
OKLaboklab(33.01% 0.1178 -0.0468)
OKLCHoklch(33.01% 0.127 338.3)
XYZxyz(5.7553, 3.0744, 6.9456)
Luminance0.0307 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B0F4B #0F5B1F
analogous
#450F5B #5B0F4B #5B0F25
triadic
#5B0F4B #4B5B0F #0F4B5B
tetradic
#5B0F4B #5B450F #0F5B1F #0F255B
square
#5B0F4B #5B450F #0F5B1F #0F255B
split-complementary
#5B0F4B #255B0F #0F5B45
monochromatic
#1A0416 #260620 #5B0F4B #901876 #C420A2

Accessibility & contrast

On white

13.00
#5B0F4B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B0F4B
13.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B0F4B#FFFFFF#000000##FFFFFF
##5B0F4B1.0013.001.6113.00
#FFFFFF13.001.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#132A4D
Deuteranopia (green-blind)
#2D3549
Tritanopia (blue-blind)
#61132C
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #5b0f4b;
/* rgb */ color: rgb(91, 15, 75);
/* oklch */ color: oklch(33.0% 0.127 338.3);
Tailwind
colors: {
  custom: {
    50: '#8c587d',
    500: '#5b0f4b',
    950: '#000000',
  },
}
SCSS
$custom: #5b0f4b;
$custom-light: #8c587d;
$custom-dark: #000000;
JSON
{
  "hex": "#5b0f4b",
  "rgb": {
    "r": 91,
    "g": 15,
    "b": 75
  },
  "hsl": {
    "h": 312.632,
    "s": 71.698,
    "l": 20.784
  },
  "oklch": {
    "l": 0.33012,
    "c": 0.12677,
    "h": 338.3
  },
  "luminance": 0.03074
}

Semantic roles & 50–950 ramp

primary
#5B0F4B
secondary
#319546
accent
#EE5F39
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C0409
muted
#7D797B

Preview Lab

Preview with #5B0F4B

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

Preview Lab → · Contrast checker → · Palette generator →

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