#5B296E#5B296E

#5B296E is a dark, vivid purple. Relative luminance 0.049; OKLCH L 38.2% C 0.122 H 315.6°. Best body text is #FFFFFF at 10.57:1 contrast (WCAG AA passes).

Color values

HEX#5B296E
RGBrgb(91, 41, 110)
HSLhsl(283, 46%, 30%)
HSVhsv(283, 63%, 43%)
CMYKcmyk(17.3%, 62.7%, 0%, 56.9%)
CIE-LABlab(26.55, 34.99, -30.58)
CIE-LCHlch(26.55, 46.47, 318.85°)
OKLaboklab(38.18% 0.0875 -0.0856)
OKLCHoklch(38.18% 0.122 315.6)
XYZxyz(7.9214, 4.9361, 15.2843)
Luminance0.0494 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B296E #3C6E29
analogous
#39296E #5B296E #6E295F
triadic
#5B296E #6E5B29 #296E5B
tetradic
#5B296E #6E3929 #3C6E29 #295F6E
square
#5B296E #6E3929 #3C6E29 #295F6E
split-complementary
#5B296E #5F6E29 #296E39
monochromatic
#120816 #361841 #5B296E #803A9B #A153BF

Accessibility & contrast

On white

10.57
#5B296E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#5B296E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B296E
10.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B296E#FFFFFF#000000##FFFFFF
##5B296E1.0010.571.9910.57
#FFFFFF10.571.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#153C70
Deuteranopia (green-blind)
#29406C
Tritanopia (blue-blind)
#5A3547
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5b296e;
/* rgb */ color: rgb(91, 41, 110);
/* oklch */ color: oklch(38.2% 0.122 315.6);
Tailwind
colors: {
  custom: {
    50: '#8c6698',
    500: '#5b296e',
    950: '#000000',
  },
}
SCSS
$custom: #5b296e;
$custom-light: #8c6698;
$custom-dark: #000000;
JSON
{
  "hex": "#5b296e",
  "rgb": {
    "r": 91,
    "g": 41,
    "b": 110
  },
  "hsl": {
    "h": 283.478,
    "s": 45.695,
    "l": 29.608
  },
  "oklch": {
    "l": 0.38177,
    "c": 0.12242,
    "h": 315.6
  },
  "luminance": 0.04936
}

Semantic roles & 50–950 ramp

primary
#5B296E
secondary
#68A053
accent
#D55276
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C060D
muted
#7D7A7E

Preview Lab

Preview with #5B296E

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

Preview Lab → · Contrast checker → · Palette generator →

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