#5B29A7#5B29A7

#5B29A7 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.6% C 0.187 H 295.3°. Best body text is #FFFFFF at 9.05:1 contrast (WCAG AA passes).

Color values

HEX#5B29A7
RGBrgb(91, 41, 167)
HSLhsl(264, 61%, 41%)
HSVhsv(264, 75%, 65%)
CMYKcmyk(45.5%, 75.4%, 0%, 34.5%)
CIE-LABlab(30.88, 49.33, -58.98)
CIE-LCHlch(30.88, 76.89, 309.91°)
OKLaboklab(42.63% 0.0799 -0.169)
OKLCHoklch(42.63% 0.187 295.3)
XYZxyz(12.0805, 6.5997, 37.1891)
Luminance0.0660 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B29A7 #75A729
analogous
#2936A7 #5B29A7 #9A29A7
triadic
#5B29A7 #A75B29 #29A75B
tetradic
#5B29A7 #A72936 #75A729 #29A79A
square
#5B29A7 #A72936 #75A729 #29A79A
split-complementary
#5B29A7 #A79A29 #36A729
monochromatic
#251145 #401D76 #5B29A7 #783ED0 #9A6FDC

Accessibility & contrast

On white

9.05
#5B29A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#5B29A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B29A7
9.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B29A7#FFFFFF#000000##FFFFFF
##5B29A71.009.052.329.05
#FFFFFF9.051.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAB
Deuteranopia (green-blind)
#0047A5
Tritanopia (blue-blind)
#464B66
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5b29a7;
/* rgb */ color: rgb(91, 41, 167);
/* oklch */ color: oklch(42.6% 0.187 295.3);
Tailwind
colors: {
  custom: {
    50: '#9168c2',
    500: '#5b29a7',
    950: '#000000',
  },
}
SCSS
$custom: #5b29a7;
$custom-light: #9168c2;
$custom-dark: #000000;
JSON
{
  "hex": "#5b29a7",
  "rgb": {
    "r": 91,
    "g": 41,
    "b": 167
  },
  "hsl": {
    "h": 263.81,
    "s": 60.577,
    "l": 40.784
  },
  "oklch": {
    "l": 0.42631,
    "c": 0.18693,
    "h": 295.3
  },
  "luminance": 0.066
}

Semantic roles & 50–950 ramp

primary
#5B29A7
secondary
#9FC269
accent
#E444A4
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5B29A7

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

Preview Lab → · Contrast checker → · Palette generator →

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