#5B29A8#5B29A8

#5B29A8 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.7% C 0.188 H 295.1°. Best body text is #FFFFFF at 9.02:1 contrast (WCAG AA passes).

Color values

HEX#5B29A8
RGBrgb(91, 41, 168)
HSLhsl(264, 61%, 41%)
HSVhsv(264, 76%, 66%)
CMYKcmyk(45.8%, 75.6%, 0%, 34.1%)
CIE-LABlab(30.97, 49.60, -59.44)
CIE-LCHlch(30.97, 77.41, 309.84°)
OKLaboklab(42.72% 0.0797 -0.1703)
OKLCHoklch(42.72% 0.188 295.1)
XYZxyz(12.1733, 6.6369, 37.6779)
Luminance0.0664 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B29A8 #76A829
analogous
#2936A8 #5B29A8 #9A29A8
triadic
#5B29A8 #A85B29 #29A85B
tetradic
#5B29A8 #A82936 #76A829 #29A89A
square
#5B29A8 #A82936 #76A829 #29A89A
split-complementary
#5B29A8 #A89A29 #36A829
monochromatic
#261146 #401D77 #5B29A8 #783ED0 #9A6FDC

Accessibility & contrast

On white

9.02
#5B29A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#5B29A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B29A8
9.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B29A8#FFFFFF#000000##FFFFFF
##5B29A81.009.022.339.02
#FFFFFF9.021.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.021.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b29a8;
/* rgb */ color: rgb(91, 41, 168);
/* oklch */ color: oklch(42.7% 0.188 295.1);
Tailwind
colors: {
  custom: {
    50: '#9168c3',
    500: '#5b29a8',
    950: '#000000',
  },
}
SCSS
$custom: #5b29a8;
$custom-light: #9168c3;
$custom-dark: #000000;
JSON
{
  "hex": "#5b29a8",
  "rgb": {
    "r": 91,
    "g": 41,
    "b": 168
  },
  "hsl": {
    "h": 263.622,
    "s": 60.766,
    "l": 40.98
  },
  "oklch": {
    "l": 0.42719,
    "c": 0.18803,
    "h": 295.1
  },
  "luminance": 0.06637
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5B29A8

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

Preview Lab → · Contrast checker → · Palette generator →

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