#5B29AF#5B29AF

#5B29AF is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.3% C 0.196 H 293.4°. Best body text is #FFFFFF at 8.82:1 contrast (WCAG AA passes).

Color values

HEX#5B29AF
RGBrgb(91, 41, 175)
HSLhsl(262, 62%, 42%)
HSVhsv(262, 77%, 69%)
CMYKcmyk(48%, 76.6%, 0%, 31.4%)
CIE-LABlab(31.59, 51.45, -62.61)
CIE-LCHlch(31.59, 81.04, 309.41°)
OKLaboklab(43.35% 0.0778 -0.1796)
OKLCHoklch(43.35% 0.196 293.4)
XYZxyz(12.8430, 6.9048, 41.2052)
Luminance0.0691 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B29AF #7DAF29
analogous
#293AAF #5B29AF #9E29AF
triadic
#5B29AF #AF5B29 #29AF5B
tetradic
#5B29AF #AF293A #7DAF29 #29AF9E
square
#5B29AF #AF293A #7DAF29 #29AF9E
split-complementary
#5B29AF #AF9E29 #3AAF29
monochromatic
#27124C #411D7D #5B29AF #7842D3 #9C74DE

Accessibility & contrast

On white

8.82
#5B29AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#5B29AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B29AF
8.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B29AF#FFFFFF#000000##FFFFFF
##5B29AF1.008.822.388.82
#FFFFFF8.821.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB3
Deuteranopia (green-blind)
#0048AC
Tritanopia (blue-blind)
#414E6B
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5b29af;
/* rgb */ color: rgb(91, 41, 175);
/* oklch */ color: oklch(43.3% 0.196 293.4);
Tailwind
colors: {
  custom: {
    50: '#9268c8',
    500: '#5b29af',
    950: '#000000',
  },
}
SCSS
$custom: #5b29af;
$custom-light: #9268c8;
$custom-dark: #000000;
JSON
{
  "hex": "#5b29af",
  "rgb": {
    "r": 91,
    "g": 41,
    "b": 175
  },
  "hsl": {
    "h": 262.388,
    "s": 62.037,
    "l": 42.353
  },
  "oklch": {
    "l": 0.43348,
    "c": 0.19577,
    "h": 293.4
  },
  "luminance": 0.06905
}

Semantic roles & 50–950 ramp

primary
#5B29AF
secondary
#A5C66E
accent
#E543A9
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5B29AF

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

Preview Lab → · Contrast checker → · Palette generator →

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