#5B29A2#5B29A2

#5B29A2 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.2% C 0.181 H 296.6°. Best body text is #FFFFFF at 9.20:1 contrast (WCAG AA passes).

Color values

HEX#5B29A2
RGBrgb(91, 41, 162)
HSLhsl(265, 60%, 40%)
HSVhsv(265, 75%, 64%)
CMYKcmyk(43.8%, 74.7%, 0%, 36.5%)
CIE-LABlab(30.44, 48.02, -56.67)
CIE-LCHlch(30.44, 74.28, 310.28°)
OKLaboklab(42.19% 0.0812 -0.1622)
OKLCHoklch(42.19% 0.181 296.6)
XYZxyz(11.6272, 6.4184, 34.8017)
Luminance0.0642 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B29A2 #70A229
analogous
#2934A2 #5B29A2 #9729A2
triadic
#5B29A2 #A25B29 #29A25B
tetradic
#5B29A2 #A22934 #70A229 #29A297
square
#5B29A2 #A22934 #70A229 #29A297
split-complementary
#5B29A2 #A29729 #34A229
monochromatic
#241040 #401D71 #5B29A2 #773BCD #996CDA

Accessibility & contrast

On white

9.20
#5B29A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#5B29A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B29A2
9.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B29A2#FFFFFF#000000##FFFFFF
##5B29A21.009.202.289.20
#FFFFFF9.201.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A5
Deuteranopia (green-blind)
#0046A0
Tritanopia (blue-blind)
#484963
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5b29a2;
/* rgb */ color: rgb(91, 41, 162);
/* oklch */ color: oklch(42.2% 0.181 296.6);
Tailwind
colors: {
  custom: {
    50: '#9068be',
    500: '#5b29a2',
    950: '#000000',
  },
}
SCSS
$custom: #5b29a2;
$custom-light: #9068be;
$custom-dark: #000000;
JSON
{
  "hex": "#5b29a2",
  "rgb": {
    "r": 91,
    "g": 41,
    "b": 162
  },
  "hsl": {
    "h": 264.793,
    "s": 59.606,
    "l": 39.804
  },
  "oklch": {
    "l": 0.42192,
    "c": 0.18136,
    "h": 296.6
  },
  "luminance": 0.06419
}

Semantic roles & 50–950 ramp

primary
#5B29A2
secondary
#9BC067
accent
#E345A2
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5B29A2

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

Preview Lab → · Contrast checker → · Palette generator →

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