#5B29AB#5B29AB

#5B29AB is a dark, vivid violet. Relative luminance 0.068; OKLCH L 43.0% C 0.191 H 294.4°. Best body text is #FFFFFF at 8.94:1 contrast (WCAG AA passes).

Color values

HEX#5B29AB
RGBrgb(91, 41, 171)
HSLhsl(263, 61%, 42%)
HSVhsv(263, 76%, 67%)
CMYKcmyk(46.8%, 76%, 0%, 32.9%)
CIE-LABlab(31.23, 50.39, -60.81)
CIE-LCHlch(31.23, 78.97, 309.65°)
OKLaboklab(42.99% 0.0789 -0.1743)
OKLCHoklch(42.99% 0.191 294.4)
XYZxyz(12.4560, 6.7499, 39.1668)
Luminance0.0675 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B29AB #79AB29
analogous
#2938AB #5B29AB #9C29AB
triadic
#5B29AB #AB5B29 #29AB5B
tetradic
#5B29AB #AB2938 #79AB29 #29AB9C
square
#5B29AB #AB2938 #79AB29 #29AB9C
split-complementary
#5B29AB #AB9C29 #38AB29
monochromatic
#261148 #411D7A #5B29AB #7840D1 #9B71DD

Accessibility & contrast

On white

8.94
#5B29AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#5B29AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B29AB
8.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B29AB#FFFFFF#000000##FFFFFF
##5B29AB1.008.942.358.94
#FFFFFF8.941.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAF
Deuteranopia (green-blind)
#0047A9
Tritanopia (blue-blind)
#434C68
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5b29ab;
/* rgb */ color: rgb(91, 41, 171);
/* oklch */ color: oklch(43.0% 0.191 294.4);
Tailwind
colors: {
  custom: {
    50: '#9168c5',
    500: '#5b29ab',
    950: '#000000',
  },
}
SCSS
$custom: #5b29ab;
$custom-light: #9168c5;
$custom-dark: #000000;
JSON
{
  "hex": "#5b29ab",
  "rgb": {
    "r": 91,
    "g": 41,
    "b": 171
  },
  "hsl": {
    "h": 263.077,
    "s": 61.321,
    "l": 41.569
  },
  "oklch": {
    "l": 0.42987,
    "c": 0.19136,
    "h": 294.4
  },
  "luminance": 0.0675
}

Semantic roles & 50–950 ramp

primary
#5B29AB
secondary
#A2C46C
accent
#E443A6
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5B29AB

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

Preview Lab → · Contrast checker → · Palette generator →

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