#5B2AB1#5B2AB1

#5B2AB1 is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.6% C 0.197 H 292.8°. Best body text is #FFFFFF at 8.71:1 contrast (WCAG AA passes).

Color values

HEX#5B2AB1
RGBrgb(91, 42, 177)
HSLhsl(262, 62%, 43%)
HSVhsv(262, 76%, 69%)
CMYKcmyk(48.6%, 76.3%, 0%, 30.6%)
CIE-LABlab(31.93, 51.52, -63.25)
CIE-LCHlch(31.93, 81.58, 309.17°)
OKLaboklab(43.64% 0.0765 -0.1815)
OKLCHoklch(43.64% 0.197 292.8)
XYZxyz(13.0759, 7.0540, 42.2590)
Luminance0.0705 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2AB1 #80B12A
analogous
#2A3CB1 #5B2AB1 #9E2AB1
triadic
#5B2AB1 #B15B2A #2AB15B
tetradic
#5B2AB1 #B12A3C #80B12A #2AB19E
square
#5B2AB1 #B12A3C #80B12A #2AB19E
split-complementary
#5B2AB1 #B19E2A #3CB12A
monochromatic
#28134E #421E80 #5B2AB1 #7945D3 #9C77DF

Accessibility & contrast

On white

8.71
#5B2AB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#5B2AB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2AB1
8.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2AB1#FFFFFF#000000##FFFFFF
##5B2AB11.008.712.418.71
#FFFFFF8.711.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB5
Deuteranopia (green-blind)
#0049AE
Tritanopia (blue-blind)
#404F6C
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5b2ab1;
/* rgb */ color: rgb(91, 42, 177);
/* oklch */ color: oklch(43.6% 0.197 292.8);
Tailwind
colors: {
  custom: {
    50: '#9269c9',
    500: '#5b2ab1',
    950: '#000000',
  },
}
SCSS
$custom: #5b2ab1;
$custom-light: #9269c9;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2ab1",
  "rgb": {
    "r": 91,
    "g": 42,
    "b": 177
  },
  "hsl": {
    "h": 261.778,
    "s": 61.644,
    "l": 42.941
  },
  "oklch": {
    "l": 0.43642,
    "c": 0.19696,
    "h": 292.8
  },
  "luminance": 0.07054
}

Semantic roles & 50–950 ramp

primary
#5B2AB1
secondary
#A7C670
accent
#E543AA
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5B2AB1

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

Preview Lab → · Contrast checker → · Palette generator →

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