#5B124E#5B124E

#5B124E is a dark, vivid pink. Relative luminance 0.032; OKLCH L 33.4% C 0.126 H 336.4°. Best body text is #FFFFFF at 12.79:1 contrast (WCAG AA passes).

Color values

HEX#5B124E
RGBrgb(91, 18, 78)
HSLhsl(311, 67%, 21%)
HSVhsv(311, 80%, 36%)
CMYKcmyk(0%, 80.2%, 14.3%, 64.3%)
CIE-LABlab(20.86, 39.18, -18.49)
CIE-LCHlch(20.86, 43.32, 334.73°)
OKLaboklab(33.44% 0.1151 -0.0504)
OKLCHoklch(33.44% 0.126 336.4)
XYZxyz(5.9059, 3.2074, 7.5143)
Luminance0.0321 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B124E #125B1F
analogous
#44125B #5B124E #5B122A
triadic
#5B124E #4E5B12 #124E5B
tetradic
#5B124E #5B4412 #125B1F #122A5B
square
#5B124E #5B4412 #125B1F #122A5B
split-complementary
#5B124E #2A5B12 #125B44
monochromatic
#1A0516 #280822 #5B124E #8E1C7A #C126A6

Accessibility & contrast

On white

12.79
#5B124E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#5B124E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B124E
12.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B124E#FFFFFF#000000##FFFFFF
##5B124E1.0012.791.6412.79
#FFFFFF12.791.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#132B50
Deuteranopia (green-blind)
#2D364C
Tritanopia (blue-blind)
#60172E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #5b124e;
/* rgb */ color: rgb(91, 18, 78);
/* oklch */ color: oklch(33.4% 0.126 336.4);
Tailwind
colors: {
  custom: {
    50: '#8c5980',
    500: '#5b124e',
    950: '#000000',
  },
}
SCSS
$custom: #5b124e;
$custom-light: #8c5980;
$custom-dark: #000000;
JSON
{
  "hex": "#5b124e",
  "rgb": {
    "r": 91,
    "g": 18,
    "b": 78
  },
  "hsl": {
    "h": 310.685,
    "s": 66.972,
    "l": 21.373
  },
  "oklch": {
    "l": 0.33437,
    "c": 0.12564,
    "h": 336.4
  },
  "luminance": 0.03207
}

Semantic roles & 50–950 ramp

primary
#5B124E
secondary
#359346
accent
#EA5D3E
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5B124E

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

Preview Lab → · Contrast checker → · Palette generator →

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