#5B29A9#5B29A9

#5B29A9 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.8% C 0.189 H 294.8°. Best body text is #FFFFFF at 8.99:1 contrast (WCAG AA passes).

Color values

HEX#5B29A9
RGBrgb(91, 41, 169)
HSLhsl(263, 61%, 41%)
HSVhsv(263, 76%, 66%)
CMYKcmyk(46.2%, 75.7%, 0%, 33.7%)
CIE-LABlab(31.05, 49.86, -59.89)
CIE-LCHlch(31.05, 77.93, 309.78°)
OKLaboklab(42.81% 0.0794 -0.1717)
OKLCHoklch(42.81% 0.189 294.8)
XYZxyz(12.2668, 6.6743, 38.1704)
Luminance0.0668 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B29A9 #77A929
analogous
#2937A9 #5B29A9 #9B29A9
triadic
#5B29A9 #A95B29 #29A95B
tetradic
#5B29A9 #A92937 #77A929 #29A99B
square
#5B29A9 #A92937 #77A929 #29A99B
split-complementary
#5B29A9 #A99B29 #37A929
monochromatic
#261146 #401D78 #5B29A9 #783FD0 #9A70DC

Accessibility & contrast

On white

8.99
#5B29A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#5B29A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B29A9
8.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B29A9#FFFFFF#000000##FFFFFF
##5B29A91.008.992.348.99
#FFFFFF8.991.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAD
Deuteranopia (green-blind)
#0047A7
Tritanopia (blue-blind)
#454B67
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5b29a9;
/* rgb */ color: rgb(91, 41, 169);
/* oklch */ color: oklch(42.8% 0.189 294.8);
Tailwind
colors: {
  custom: {
    50: '#9168c4',
    500: '#5b29a9',
    950: '#000000',
  },
}
SCSS
$custom: #5b29a9;
$custom-light: #9168c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5b29a9",
  "rgb": {
    "r": 91,
    "g": 41,
    "b": 169
  },
  "hsl": {
    "h": 263.438,
    "s": 60.952,
    "l": 41.176
  },
  "oklch": {
    "l": 0.42808,
    "c": 0.18915,
    "h": 294.8
  },
  "luminance": 0.06675
}

Semantic roles & 50–950 ramp

primary
#5B29A9
secondary
#A1C36A
accent
#E444A5
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5B29A9

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

Preview Lab → · Contrast checker → · Palette generator →

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