#5B29A6#5B29A6

#5B29A6 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.5% C 0.186 H 295.6°. Best body text is #FFFFFF at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#5B29A6
RGBrgb(91, 41, 166)
HSLhsl(264, 60%, 41%)
HSVhsv(264, 75%, 65%)
CMYKcmyk(45.2%, 75.3%, 0%, 34.9%)
CIE-LABlab(30.79, 49.07, -58.52)
CIE-LCHlch(30.79, 76.37, 309.98°)
OKLaboklab(42.54% 0.0802 -0.1676)
OKLCHoklch(42.54% 0.186 295.6)
XYZxyz(11.9884, 6.5629, 36.7041)
Luminance0.0656 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B29A6 #74A629
analogous
#2936A6 #5B29A6 #9929A6
triadic
#5B29A6 #A65B29 #29A65B
tetradic
#5B29A6 #A62936 #74A629 #29A699
square
#5B29A6 #A62936 #74A629 #29A699
split-complementary
#5B29A6 #A69929 #36A629
monochromatic
#251144 #401D75 #5B29A6 #773DCF #9A6EDB

Accessibility & contrast

On white

9.08
#5B29A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#5B29A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B29A6
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B29A6#FFFFFF#000000##FFFFFF
##5B29A61.009.082.319.08
#FFFFFF9.081.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AA
Deuteranopia (green-blind)
#0047A4
Tritanopia (blue-blind)
#464A66
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5b29a6;
/* rgb */ color: rgb(91, 41, 166);
/* oklch */ color: oklch(42.5% 0.186 295.6);
Tailwind
colors: {
  custom: {
    50: '#9168c1',
    500: '#5b29a6',
    950: '#000000',
  },
}
SCSS
$custom: #5b29a6;
$custom-light: #9168c1;
$custom-dark: #000000;
JSON
{
  "hex": "#5b29a6",
  "rgb": {
    "r": 91,
    "g": 41,
    "b": 166
  },
  "hsl": {
    "h": 264,
    "s": 60.386,
    "l": 40.588
  },
  "oklch": {
    "l": 0.42542,
    "c": 0.18581,
    "h": 295.6
  },
  "luminance": 0.06563
}

Semantic roles & 50–950 ramp

primary
#5B29A6
secondary
#9EC269
accent
#E444A4
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5B29A6

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

Preview Lab → · Contrast checker → · Palette generator →

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