#5B2EAB#5B2EAB

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

Color values

HEX#5B2EAB
RGBrgb(91, 46, 171)
HSLhsl(262, 58%, 43%)
HSVhsv(262, 73%, 67%)
CMYKcmyk(46.8%, 73.1%, 0%, 32.9%)
CIE-LABlab(32.07, 48.00, -59.43)
CIE-LCHlch(32.07, 76.39, 308.93°)
OKLaboklab(43.58% 0.0745 -0.1703)
OKLCHoklch(43.58% 0.186 293.6)
XYZxyz(12.6400, 7.1180, 39.2281)
Luminance0.0712 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2EAB #7EAB2E
analogous
#2E3FAB #5B2EAB #9A2EAB
triadic
#5B2EAB #AB5B2E #2EAB5B
tetradic
#5B2EAB #AB2E3F #7EAB2E #2EAB9A
square
#5B2EAB #AB2E3F #7EAB2E #2EAB9A
split-complementary
#5B2EAB #AB9A2E #3FAB2E
monochromatic
#28144B #41217B #5B2EAB #7848CE #9C79DB

Accessibility & contrast

On white

8.66
#5B2EAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#5B2EAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2EAB
8.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2EAB#FFFFFF#000000##FFFFFF
##5B2EAB1.008.662.428.66
#FFFFFF8.661.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAF
Deuteranopia (green-blind)
#0049A9
Tritanopia (blue-blind)
#434F6A
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5b2eab;
/* rgb */ color: rgb(91, 46, 171);
/* oklch */ color: oklch(43.6% 0.186 293.6);
Tailwind
colors: {
  custom: {
    50: '#916bc5',
    500: '#5b2eab',
    950: '#000000',
  },
}
SCSS
$custom: #5b2eab;
$custom-light: #916bc5;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2eab",
  "rgb": {
    "r": 91,
    "g": 46,
    "b": 171
  },
  "hsl": {
    "h": 261.6,
    "s": 57.604,
    "l": 42.549
  },
  "oklch": {
    "l": 0.43581,
    "c": 0.1859,
    "h": 293.6
  },
  "luminance": 0.07118
}

Semantic roles & 50–950 ramp

primary
#5B2EAB
secondary
#A6C372
accent
#E147A9
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5B2EAB

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

Preview Lab → · Contrast checker → · Palette generator →

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