#5B29A5#5B29A5

#5B29A5 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.5% C 0.185 H 295.8°. Best body text is #FFFFFF at 9.11:1 contrast (WCAG AA passes).

Color values

HEX#5B29A5
RGBrgb(91, 41, 165)
HSLhsl(264, 60%, 40%)
HSVhsv(264, 75%, 65%)
CMYKcmyk(44.8%, 75.2%, 0%, 35.3%)
CIE-LABlab(30.70, 48.80, -58.06)
CIE-LCHlch(30.70, 75.85, 310.05°)
OKLaboklab(42.45% 0.0804 -0.1663)
OKLCHoklch(42.45% 0.185 295.8)
XYZxyz(11.8970, 6.5264, 36.2229)
Luminance0.0653 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B29A5 #73A529
analogous
#2935A5 #5B29A5 #9929A5
triadic
#5B29A5 #A55B29 #29A55B
tetradic
#5B29A5 #A52935 #73A529 #29A599
square
#5B29A5 #A52935 #73A529 #29A599
split-complementary
#5B29A5 #A59929 #35A529
monochromatic
#251143 #401D74 #5B29A5 #773DCF #9A6EDB

Accessibility & contrast

On white

9.11
#5B29A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B29A5
9.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B29A5#FFFFFF#000000##FFFFFF
##5B29A51.009.112.319.11
#FFFFFF9.111.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A9
Deuteranopia (green-blind)
#0046A3
Tritanopia (blue-blind)
#474A65
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5b29a5;
/* rgb */ color: rgb(91, 41, 165);
/* oklch */ color: oklch(42.5% 0.185 295.8);
Tailwind
colors: {
  custom: {
    50: '#9168c1',
    500: '#5b29a5',
    950: '#000000',
  },
}
SCSS
$custom: #5b29a5;
$custom-light: #9168c1;
$custom-dark: #000000;
JSON
{
  "hex": "#5b29a5",
  "rgb": {
    "r": 91,
    "g": 41,
    "b": 165
  },
  "hsl": {
    "h": 264.194,
    "s": 60.194,
    "l": 40.392
  },
  "oklch": {
    "l": 0.42454,
    "c": 0.18471,
    "h": 295.8
  },
  "luminance": 0.06527
}

Semantic roles & 50–950 ramp

primary
#5B29A5
secondary
#9EC268
accent
#E344A3
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5B29A5

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

Preview Lab → · Contrast checker → · Palette generator →

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