#5B296D#5B296D

#5B296D is a dark, vivid purple. Relative luminance 0.049; OKLCH L 38.1% C 0.121 H 316.2°. Best body text is #FFFFFF at 10.59:1 contrast (WCAG AA passes).

Color values

HEX#5B296D
RGBrgb(91, 41, 109)
HSLhsl(284, 45%, 29%)
HSVhsv(284, 62%, 43%)
CMYKcmyk(16.5%, 62.4%, 0%, 57.3%)
CIE-LABlab(26.49, 34.76, -30.03)
CIE-LCHlch(26.49, 45.94, 319.17°)
OKLaboklab(38.11% 0.0875 -0.084)
OKLCHoklch(38.11% 0.121 316.2)
XYZxyz(7.8672, 4.9144, 14.9992)
Luminance0.0491 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B296D #3B6D29
analogous
#39296D #5B296D #6D295D
triadic
#5B296D #6D5B29 #296D5B
tetradic
#5B296D #6D3929 #3B6D29 #295D6D
square
#5B296D #6D3929 #3B6D29 #295D6D
split-complementary
#5B296D #5D6D29 #296D39
monochromatic
#130816 #361841 #5B296D #803A99 #A252BE

Accessibility & contrast

On white

10.59
#5B296D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#5B296D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B296D
10.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B296D#FFFFFF#000000##FFFFFF
##5B296D1.0010.591.9810.59
#FFFFFF10.591.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#163C6F
Deuteranopia (green-blind)
#29406B
Tritanopia (blue-blind)
#5A3547
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5b296d;
/* rgb */ color: rgb(91, 41, 109);
/* oklch */ color: oklch(38.1% 0.121 316.2);
Tailwind
colors: {
  custom: {
    50: '#8c6697',
    500: '#5b296d',
    950: '#000000',
  },
}
SCSS
$custom: #5b296d;
$custom-light: #8c6697;
$custom-dark: #000000;
JSON
{
  "hex": "#5b296d",
  "rgb": {
    "r": 91,
    "g": 41,
    "b": 109
  },
  "hsl": {
    "h": 284.118,
    "s": 45.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.38111,
    "c": 0.1213,
    "h": 316.2
  },
  "luminance": 0.04914
}

Semantic roles & 50–950 ramp

primary
#5B296D
secondary
#679F53
accent
#D55375
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C060D
muted
#7D7A7E

Preview Lab

Preview with #5B296D

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

Preview Lab → · Contrast checker → · Palette generator →

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