#5B294E#5B294E

#5B294E is a dark, moderate pink. Relative luminance 0.044; OKLCH L 36.3% C 0.089 H 338.2°. Best body text is #FFFFFF at 11.22:1 contrast (WCAG AA passes).

Color values

HEX#5B294E
RGBrgb(91, 41, 78)
HSLhsl(316, 38%, 26%)
HSVhsv(316, 55%, 36%)
CMYKcmyk(0%, 54.9%, 14.3%, 64.3%)
CIE-LABlab(24.83, 28.30, -12.33)
CIE-LCHlch(24.83, 30.87, 336.45°)
OKLaboklab(36.35% 0.0828 -0.0332)
OKLCHoklch(36.35% 0.089 338.2)
XYZxyz(6.4825, 4.3605, 7.7065)
Luminance0.0436 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B294E #295B36
analogous
#4F295B #5B294E #5B2935
triadic
#5B294E #4E5B29 #294E5B
tetradic
#5B294E #5B4F29 #295B36 #29355B
square
#5B294E #5B4F29 #295B36 #29355B
split-complementary
#5B294E #355B29 #295B4F
monochromatic
#150A12 #31162A #5B294E #853C72 #AF4F96

Accessibility & contrast

On white

11.22
#5B294E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#5B294E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B294E
11.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B294E#FFFFFF#000000##FFFFFF
##5B294E1.0011.221.8711.22
#FFFFFF11.221.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B364F
Deuteranopia (green-blind)
#383E4D
Tritanopia (blue-blind)
#602B38
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5b294e;
/* rgb */ color: rgb(91, 41, 78);
/* oklch */ color: oklch(36.3% 0.089 338.2);
Tailwind
colors: {
  custom: {
    50: '#8b657f',
    500: '#5b294e',
    950: '#000000',
  },
}
SCSS
$custom: #5b294e;
$custom-light: #8b657f;
$custom-dark: #000000;
JSON
{
  "hex": "#5b294e",
  "rgb": {
    "r": 91,
    "g": 41,
    "b": 78
  },
  "hsl": {
    "h": 315.6,
    "s": 37.879,
    "l": 25.882
  },
  "oklch": {
    "l": 0.36348,
    "c": 0.08924,
    "h": 338.2
  },
  "luminance": 0.0436
}

Semantic roles & 50–950 ramp

primary
#5B294E
secondary
#528E62
accent
#CE785A
background
#F8F6F7
surface
#F0EBEE
border
#CBC6C9
text
#0C060A
muted
#7D7A7C

Preview Lab

Preview with #5B294E

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

Preview Lab → · Contrast checker → · Palette generator →

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